1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-17 12:00:35 +00:00
Andrei Vagin a516403787 fs/proc: extend the PAGEMAP_SCAN ioctl to report guard regions
Patch series "fs/proc: extend the PAGEMAP_SCAN ioctl to report guard
regions", v2.

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.

Currently, CRIU utilizes PAGEMAP_SCAN as a more efficient alternative to
parsing /proc/pid/pagemap.  Without this change, guard regions are
incorrectly reported as swap-anon regions, leading CRIU to attempt dumping
them and subsequently failing.

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


This patch (of 3):

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.

Link: https://lkml.kernel.org/r/20250324065328.107678-1-avagin@google.com
Link: https://lkml.kernel.org/r/20250324065328.107678-2-avagin@google.com
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-05-11 17:48:16 -07:00
..
2024-07-31 13:56:00 +02:00
2025-02-08 15:16:29 +00:00
2025-01-13 07:36:29 -08:00
2025-04-02 18:23:31 -07:00
2025-02-05 13:22:04 +09:00
2024-06-11 12:57:49 -05:00
2025-01-17 22:23:47 +01:00
2025-03-25 11:30:42 -07:00
2025-02-25 18:31:04 -08:00
2025-02-12 02:29:30 +00:00
2024-08-29 10:39:37 +02:00
2024-08-26 09:37:23 -07:00
2024-06-01 07:28:21 +02:00
2024-09-01 20:26:05 -07:00
2025-04-17 11:09:10 +02:00
2024-08-19 22:36:26 -04:00
2024-09-06 08:31:40 -06:00
2025-02-21 15:59:47 -08:00
2024-08-12 17:50:34 -07:00
2024-09-16 11:15:26 +02:00
2025-01-08 13:18:11 +01:00
2025-03-27 13:14:45 -05:00
2025-02-25 18:14:03 -08:00
2025-03-25 07:37:53 -07:00
2025-01-09 16:23:17 +01:00
2025-03-28 16:15:43 -06:00
2024-10-09 19:55:40 -07:00
2025-04-01 18:03:46 -07:00
2025-04-14 09:51:31 -04:00