All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] selftests/mm: fix userfaultfd tests with CONFIG_PTE_MARKER_UFFD_WP=n
@ 2026-11-22  8:20 kaleshsingh
  2026-11-22  8:20 ` [PATCH 1/2] selftests/mm: uffd-wp-mremap: skip unsupported shmem and hugetlb cases kaleshsingh
  2026-11-22  8:20 ` [PATCH 2/2] selftests/mm: uffd-unit-tests: filter required features per memory type kaleshsingh
  0 siblings, 2 replies; 7+ messages in thread
From: kaleshsingh @ 2026-11-22  8:20 UTC (permalink / raw)
  To: akpm
  Cc: kernel-team, android-mm, Kalesh Singh, Mike Rapoport, Peter Xu,
	David Hildenbrand, Lorenzo Stoakes, Liam R. Howlett,
	Vlastimil Babka, Suren Baghdasaryan, Michal Hocko, Shuah Khan,
	Ryan Roberts, linux-mm, linux-kselftest

From: Kalesh Singh <kaleshsingh@google.com>

With CONFIG_PTE_MARKER_UFFD_WP=n, userfaultfd write protection only
works on anonymous memory. uffd-wp-mremap then fails its shmem and
hugetlb cases, and uffd-unit-tests skips anonymous runs that would
pass. Patch 1 skips the unsupported uffd-wp-mremap cases and patch 2
filters uffd-unit-tests' required features per memory type.

Tested on arm64 device: with CONFIG_PTE_MARKER_UFFD_WP=n,
uffd-wp-mremap goes from 26 failures to none and uffd-unit-tests
passes 78 tests instead of 70; with =y, the results are unchanged.

Kalesh Singh (2):
  selftests/mm: uffd-wp-mremap: skip unsupported shmem and hugetlb cases
  selftests/mm: uffd-unit-tests: filter required features per memory
    type

 tools/testing/selftests/mm/uffd-unit-tests.c | 42 +++++++++++++++++---
 tools/testing/selftests/mm/uffd-wp-mremap.c  | 13 ++++--
 2 files changed, 46 insertions(+), 9 deletions(-)


base-commit: 4843f6873f7c4835e62f2c73ba0fd538e57a2f22
-- 
2.56.1.750.gf70dc682cf-goog



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-24 23:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22  8:20 [PATCH 0/2] selftests/mm: fix userfaultfd tests with CONFIG_PTE_MARKER_UFFD_WP=n kaleshsingh
2026-11-22  8:20 ` [PATCH 1/2] selftests/mm: uffd-wp-mremap: skip unsupported shmem and hugetlb cases kaleshsingh
2026-11-24 14:13   ` Liam R. Howlett
2026-11-24 23:34   ` + selftests-mm-uffd-wp-mremap-skip-unsupported-shmem-and-hugetlb-cases.patch added to mm-new branch Andrew Morton
2026-11-22  8:20 ` [PATCH 2/2] selftests/mm: uffd-unit-tests: filter required features per memory type kaleshsingh
2026-11-24 14:14   ` Liam R. Howlett
2026-11-24 23:34   ` + selftests-mm-uffd-unit-tests-filter-required-features-per-memory-type.patch added to mm-new branch Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.