]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/mm: add mseal test for no-discard madvise
authorPedro Falcato <pedro.falcato@gmail.com>
Wed, 7 Aug 2024 17:33:36 +0000 (18:33 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:55 +0000 (17:52 -0700)
commit0c8c4e47147f211e8ee361dc9bce7e5a15682f1f
treeaa0bf7efe654450393235d92e2fc9ccd856175d6
parent1eb1aa83d028f6eb93f3a30461ab9f65a1b64d95
selftests/mm: add mseal test for no-discard madvise

Add an mseal test for madvise() operations that aren't considered
"discard" (e.g purely advisory ops such as MADV_RANDOM).

Link: https://lkml.kernel.org/r/20240807173336.2523757-3-pedro.falcato@gmail.com
Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>
Cc: Jeff Xu <jeffxu@chromium.org>
Cc: Kees Cook <kees@kernel.org>
Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/mseal_test.c