[PATCH 0/3] mm/pagemap: A few fixes to the recent PAGEMAP_SCAN

From: Peter Xu
Date: Thu Nov 16 2023 - 15:15:57 EST


Muhammad: I'd rather leave these to you, but since I already started
looking into it, and you didn't yet start replying, let me try to do it.
Please still review if you can catch the train.

This series should fix two known reports from syzbot on the new
PAGEMAP_SCAN ioctl():

https://lore.kernel.org/all/000000000000b0e576060a30ee3b@xxxxxxxxxx/
https://lore.kernel.org/all/000000000000773fa7060a31e2cc@xxxxxxxxxx/

The 3rd patch is something I found when testing these patches.

Thanks,

Peter Xu (3):
mm/pagemap: Fix ioctl(PAGEMAP_SCAN) on vma check
mm/pagemap: Fix wr-protect even if PM_SCAN_WP_MATCHING not set
mm/selftests: Fix pagemap_ioctl memory map test

fs/proc/task_mmu.c | 26 +++++++++++++++++-----
tools/testing/selftests/mm/pagemap_ioctl.c | 9 +++++---
2 files changed, 27 insertions(+), 8 deletions(-)

--
2.41.0