Skip to content

Commit 105840e

Browse files
edliawakpm00
authored andcommitted
selftests/mm: sigbus-wp test requires UFFD_FEATURE_WP_HUGETLBFS_SHMEM
The sigbus-wp test requires the UFFD_FEATURE_WP_HUGETLBFS_SHMEM flag for shmem and hugetlb targets. Otherwise it is not backwards compatible with kernels <5.19 and fails with EINVAL. Link: https://lkml.kernel.org/r/[email protected] Fixes: 73c1ea9 ("selftests/mm: move uffd sig/events tests into uffd unit tests") Signed-off-by: Edward Liaw <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Peter Xu <[email protected] Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 30fb6a8 commit 105840e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/testing/selftests/mm/uffd-unit-tests.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,8 @@ uffd_test_case_t uffd_tests[] = {
14271427
.uffd_fn = uffd_sigbus_wp_test,
14281428
.mem_targets = MEM_ALL,
14291429
.uffd_feature_required = UFFD_FEATURE_SIGBUS |
1430-
UFFD_FEATURE_EVENT_FORK | UFFD_FEATURE_PAGEFAULT_FLAG_WP,
1430+
UFFD_FEATURE_EVENT_FORK | UFFD_FEATURE_PAGEFAULT_FLAG_WP |
1431+
UFFD_FEATURE_WP_HUGETLBFS_SHMEM,
14311432
},
14321433
{
14331434
.name = "events",

0 commit comments

Comments
 (0)