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

Peter Xu posted 3 patches 2 years, 1 month ago
fs/proc/task_mmu.c                         | 26 +++++++++++++++++-----
tools/testing/selftests/mm/pagemap_ioctl.c |  9 +++++---
2 files changed, 27 insertions(+), 8 deletions(-)
[PATCH 0/3] mm/pagemap: A few fixes to the recent PAGEMAP_SCAN
Posted by Peter Xu 2 years, 1 month ago
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@google.com/
https://lore.kernel.org/all/000000000000773fa7060a31e2cc@google.com/

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