Skip to content

Commit a52b4f1

Browse files
peaktocreekakpm00
authored andcommitted
selftest mm/mseal read-only elf memory segment
Sealing read-only of elf mapping so it can't be changed by mprotect. [[email protected]: style change] Link: https://lkml.kernel.org/r/[email protected] [[email protected]: fix linker error for inline function] Link: https://lkml.kernel.org/r/[email protected] [[email protected]: fix compile warning] Link: https://lkml.kernel.org/r/[email protected] [[email protected]: fix arm build] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jeff Xu <[email protected]> Signed-off-by: Amer Al Shanawany <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Jann Horn <[email protected]> Cc: Jeff Xu <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Jorge Lucangeli Obes <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Muhammad Usama Anjum <[email protected]> Cc: Pedro Falcato <[email protected]> Cc: Stephen Röttger <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Amer Al Shanawany <[email protected]> Cc: Javier Carrasco <[email protected]> Cc: Shuah Khan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent c010d09 commit a52b4f1

File tree

4 files changed

+275
-36
lines changed

4 files changed

+275
-36
lines changed

tools/testing/selftests/mm/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ va_high_addr_switch
4848
hugetlb_fault_after_madv
4949
hugetlb_madv_vs_map
5050
mseal_test
51+
seal_elf

tools/testing/selftests/mm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ TEST_GEN_FILES += mrelease_test
6060
TEST_GEN_FILES += mremap_dontunmap
6161
TEST_GEN_FILES += mremap_test
6262
TEST_GEN_FILES += mseal_test
63+
TEST_GEN_FILES += seal_elf
6364
TEST_GEN_FILES += on-fault-limit
6465
TEST_GEN_FILES += pagemap_ioctl
6566
TEST_GEN_FILES += thuge-gen

0 commit comments

Comments
 (0)