selftests/mm: add PAGEMAP_SCAN guard region test
authorAndrei Vagin <avagin@gmail.com>
Mon, 24 Mar 2025 06:53:28 +0000 (06:53 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 May 2025 00:48:17 +0000 (17:48 -0700)
commita9562fd03a5edbc982ef26d729da3f5968533d23
tree59fae88ddb38a5c02d073019305084c8706b255e
parent267bee0cd87a98832fd9da1976f0f53788b6a2b2
selftests/mm: add PAGEMAP_SCAN guard region test

Add a selftest to verify the PAGEMAP_SCAN ioctl correctly reports guard
regions using the newly introduced PAGE_IS_GUARD flag.

Link: https://lkml.kernel.org/r/20250324065328.107678-4-avagin@google.com
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/guard-regions.c