[PATCH v2 0/2] fs/proc: fix PAGEMAP_SCAN walk_end after a buffer refill
From: Matthew Salsamendi via B4 Relay
Date: Tue Nov 17 2026 - 19:26:33 EST
Hey all,
Thanks for the feedback. I agree with the proposed change to the patch.
Apologies for the delayed reply.
You'll find the updated patch and the requested selftest below.
On x86-64, the refill test fails on the unpatched kernel and the
HugeTLB retry test fails on v1. All 121 tests pass on v2.
Matt
v1: https://lore.kernel.org/linux-mm/CAMPWk9NE_epOdOCbs1PGh8OQP4wjTObvjU-1Wopmu7SSNAMXhw@xxxxxxxxxxxxxx/
Matthew Salsamendi (2):
fs/proc/task_mmu: reset walk_end before each pagemap walk
selftests/mm: cover PAGEMAP_SCAN refill and HugeTLB retry
fs/proc/task_mmu.c | 1 +
tools/testing/selftests/mm/pagemap_ioctl.c | 61 +++++++++++++++++++++-
2 files changed, 61 insertions(+), 1 deletion(-)
base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb