fs/proc/task_mmu: fix pagemap flags with PMD THP entries on 32bit
Subsystems (4)
PATCH 1/1 fs/proc/task_mmu: fix pagemap flags with PMD THP entries on 32bit
Entries (including flags) are u64, even on 32bit. So right now we are cutting of the flags on 32bit. This way, for example the cow selftest complains about:
# ./cow ... Bail Out! read and ioctl return unmatched results for populated: 0 1
Fixes 2c1f057e5be6 ("fs/proc/task_mmu: properly detect PM_MMAP_EXCLUSIVE per page of PMD-mapped THPs")
Cc Andrew Morton <[email protected]>
Cc Oscar Salvador <[email protected]>
Cc <[email protected]>
Signed-off-by David Hildenbrand <[email protected]>
--- fs/proc/task_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/proc/task_mmu.c +1 -1
@@ -1810,7 +1810,7 @@ static int pagemap_pmd_range(pmd_t *pmdp, unsigned long addr, unsigned long end, }for (; addr != end; addr +=PAGE_SIZE , idx++) { -unsigned long cur_flags = flags; +u64 cur_flags = flags;pagemap_entry_t pme; if (folio && (flags & PM_PRESENT) &&
Signature · 1 line
2.47.1