selftests/mm: fix userfaultfd tests with CONFIG_PTE_MARKER_UFFD_WP=n
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | selftests/mm: uffd-wp-mremap: skip unsupported shmem and hugetlb casestools/ | +9 | 0 replies | |
| 2/2 | selftests/mm: uffd-unit-tests: filter required features per memory typetools/ | +37 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] selftests/mm: fix userfaultfd tests with CONFIG_PTE_MARKER_UFFD_WP=n
From: Kalesh Singh <[email protected]>
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
Signature · 1 line
2.56.1.750.gf70dc682cf-goog