[PATCH 0/2] fs/proc: extend the PAGEMAP_SCAN ioctl to report

From: Andrei Vagin
Date: Thu Mar 20 2025 - 02:39:58 EST


Introduce the PAGE_IS_GUARD flag in the PAGEMAP_SCAN ioctl to expose
information about guard regions. This allows userspace tools, such as
CRIU, to detect and handle guard regions.

This series should be applied on top of "[PATCH 0/2] fs/proc/task_mmu:
add guard region bit to pagemap":
https://lore.kernel.org/all/2025031926-engraved-footer-3e9b@gregkh/T/

The series includes updates to the documentation and selftests to
reflect the new functionality.

Andrei Vagin (2):
fs/proc: extend the PAGEMAP_SCAN ioctl to report guard regions
selftests/mm: add PAGEMAP_SCAN guard region test

Documentation/admin-guide/mm/pagemap.rst | 1 +
fs/proc/task_mmu.c | 8 +++-
include/uapi/linux/fs.h | 1 +
tools/testing/selftests/mm/guard-regions.c | 53 ++++++++++++++++++++++
4 files changed, 61 insertions(+), 2 deletions(-)

--
2.49.0.rc1.451.g8f38331e32-goog