[PATCH v2 0/3] selftests/mm: pagemap_ioctl test fixes and cleanups

From: Zenghui Yu

Date: Tue Sep 08 2026 - 10:17:50 EST


From: "Zenghui Yu (Huawei)" <zenghui.yu@xxxxxxxxx>

This series fixes a size truncation bug in the pagemap_ioctl test that
breaks it on arm64 systems with 64K base pages, and applies two small
cleanups suggested during the review of the fix.

* From v1 [1]:
- unify all size-related parameters and variables to size_t (David)
- drop Gregory's R-b for patch #1 (as the content has changed too much)
but thank you for that!
- add patch #2 marking file-local symbols static (David)
- add patch #3 initializing page sizes early (Andrew)

[1] https://lore.kernel.org/20260907135613.68692-1-zenghui.yu@xxxxxxxxx

Zenghui Yu (Huawei) (3):
selftests/mm: fix size truncation in pagemap_ioctl test
selftests/mm: mark file-local symbols of pagemap_ioctl.c static
selftests/mm: init page sizes early in pagemap_ioctl test

tools/testing/selftests/mm/pagemap_ioctl.c | 94 +++++++++++-----------
1 file changed, 48 insertions(+), 46 deletions(-)

--
2.53.0