Files
linux/fs/proc
David Hildenbrand 4a5e85f4eb fs/proc/task_mmu: fix PAGE_IS_PFNZERO detection for the huge zero folio
is_zero_pfn() does not work for the huge zero folio. Fix it by using
is_huge_zero_pmd().

This can cause the PAGEMAP_SCAN ioctl against /proc/pid/pagemap to
present pages as PAGE_IS_PRESENT rather than as PAGE_IS_PFNZERO.

Found by code inspection.

Link: https://lkml.kernel.org/r/[email protected]
Fixes: 52526ca7fd ("fs/proc/task_mmu: implement IOCTL to get and optionally clear info about PTEs")
Signed-off-by: David Hildenbrand <[email protected]>
Cc: Muhammad Usama Anjum <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
2025-06-25 15:55:03 -07:00
..
…
2022-10-03 14:21:45 -07:00
2023-01-19 09:24:28 +01:00
2025-03-16 17:40:22 -07:00
2025-03-16 17:40:22 -07:00
2025-02-10 16:56:58 -08:00
2022-10-03 14:21:45 -07:00
2025-05-05 13:22:39 -06:00
2024-10-16 21:56:59 +02:00
2022-10-03 14:21:45 -07:00
…
2022-10-03 14:21:45 -07:00