]> git.itanic.dy.fi Git - linux-stable/commit
selftests/memfd: add tests for MFD_NOEXEC_SEAL MFD_EXEC
authorJeff Xu <jeffxu@google.com>
Thu, 15 Dec 2022 00:12:05 +0000 (00:12 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:37 +0000 (17:12 -0800)
commit11f75a01448f1b7a739e75dbd8f17b844fcfc510
treea38832bfda0ec5cdd5af8d3158df5f283a454b16
parentc4f75bc8bd6b3d62665e1f5400c419540edb5601
selftests/memfd: add tests for MFD_NOEXEC_SEAL MFD_EXEC

Tests to verify MFD_NOEXEC, MFD_EXEC and vm.memfd_noexec sysctl.

Link: https://lkml.kernel.org/r/20221215001205.51969-6-jeffxu@google.com
Signed-off-by: Jeff Xu <jeffxu@google.com>
Co-developed-by: Daniel Verkamp <dverkamp@chromium.org>
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: David Herrmann <dh.herrmann@gmail.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Jann Horn <jannh@google.com>
Cc: Jorge Lucangeli Obes <jorgelo@chromium.org>
Cc: kernel test robot <lkp@intel.com>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/memfd/fuse_test.c
tools/testing/selftests/memfd/memfd_test.c