Skip to content

mm/pagemap: A few fixes to the recent PAGEMAP_SCAN

Peter Xu linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review 2 of 3 applied

Patches in v1 2 of 3 applied

#Subject and filesSizeRepliesApplied
1/3mm/pagemap: Fix ioctl(PAGEMAP_SCAN) on vma checkfs/proc/task_mmu.c+20 -43 replies
2/3mm/pagemap: Fix wr-protect even if PM_SCAN_WP_MATCHING not setfs/proc/task_mmu.c+1 -12 repliesApplied
3/3mm/selftests: Fix pagemap_ioctl memory map testtools/testing/selftests/mm/pagemap_ioctl.c+6 -31 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDavid HildenbrandAndrei VaginMuhammad Usama Anjum
1/3R-b R-b R-b
2/3R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

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

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/[email protected]/
https://lore.kernel.org/all/[email protected]/

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(-)
Signature · 1 line
2.41.0