Files
linux/tools/testing/selftests/mm/.gitignore
Ryan Roberts b2466bb3b4 selftests/mm: introduce uffd-wp-mremap regression test
Introduce a test that registers a range of memory for
UFFDIO_WRITEPROTECT_MODE_WP without UFFD_FEATURE_EVENT_REMAP.  First check
that the uffd-wp bit is set for every PTE in the range.  Then mremap() the
range to a new location and check that the uffd-wp bit is clear for every
PTE in the range.

Run the test for small folios, all supported THP sizes and all supported
hugetlb sizes, and for swapped out memory, shared and private.

There was previously a bug in the kernel where the uffd-wp bits remained
set in all PTEs for this case, after fixing the kernel, the tests all
pass.

Link: https://lkml.kernel.org/r/20250107144755.1871363-3-ryan.roberts@arm.com
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jann Horn <jannh@google.com>
Cc: Liam R. Howlett <Liam.Howlett@Oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Peter Xu <peterx@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-01-25 20:22:31 -08:00

61 lines
949 B
Plaintext

# SPDX-License-Identifier: GPL-2.0-only
cow
hugepage-mmap
hugepage-mremap
hugepage-shm
hugepage-vmemmap
hugetlb-madvise
hugetlb-read-hwpoison
hugetlb-soft-offline
khugepaged
map_hugetlb
map_populate
thuge-gen
compaction_test
migration
mlock2-tests
mrelease_test
mremap_dontunmap
mremap_test
on-fault-limit
transhuge-stress
pagemap_ioctl
*.tmp*
protection_keys
protection_keys_32
protection_keys_64
madv_populate
uffd-stress
uffd-unit-tests
uffd-wp-mremap
mlock-intersect-test
mlock-random-test
virtual_address_range
gup_test
va_128TBswitch
map_fixed_noreplace
write_to_hugetlbfs
hmm-tests
memfd_secret
hugetlb_dio
pkey_sighandler_tests_32
pkey_sighandler_tests_64
soft-dirty
split_huge_page_test
ksm_tests
local_config.h
local_config.mk
ksm_functional_tests
mdwe_test
gup_longterm
mkdirty
va_high_addr_switch
hugetlb_fault_after_madv
hugetlb_madv_vs_map
mseal_test
droppable
hugetlb_dio
pkey_sighandler_tests_32
pkey_sighandler_tests_64
guard-pages