Skip to content

mm/mprotect: Fix soft-dirty checks

Peter Xu linux-mm lkml 4 versions – Applied

Status from this message: [merged mm-stable] selftests-soft-dirty-add-test-for-mprotect.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 12 repliesApplied 3/3
  2. v33 patches 12 repliesSuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch1 replySuperseded

Changes in v4 from the cover letter

- Add r-bs
- Fix spellings and commit messages (on Fixes) [David]
- In the new test case unlink() after open() to not leave temp file even failed

Patches in v4 All 3 applied

#Subject and filesSizeRepliesApplied
1/3mm/mprotect: Fix soft-dirty check in can_change_pte_writable()mm/internal.h mm/mmap.c mm/mprotect.c+20 -211 repliesApplied
2/3selftests: soft-dirty: Add test for mprotecttools/testing/selftests/vm/soft-dirty.c+66 -11 replyApplied
3/3selftests: Add soft-dirty into run_vmtests.shtools/testing/selftests/vm/run_vmtests.sh+2 -00 repliesApplied

Reviews trailers per patch

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

PatchDavid Hildenbrand
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] mm/mprotect: Fix soft-dirty checks

v4:
- Add r-bs
- Fix spellings and commit messages (on Fixes) [David]
- In the new test case unlink() after open() to not leave temp file even failed

v2: https://lore.kernel.org/lkml/[email protected]
v3: https://lore.kernel.org/lkml/[email protected]

Patch 1 is the previous patch and real fix. Two more test patches added to add mprotect test to soft-dirty.c, meanwhile add soft-dirty test into the vm test loop.

Please review, thanks.

Peter Xu (3):
mm/mprotect: Fix soft-dirty check in can_change_pte_writable()
selftests: soft-dirty: Add test for mprotect
selftests: Add soft-dirty into run_vmtests.sh

 mm/internal.h                             | 18 ++++++
 mm/mmap.c                                 |  2 +-
 mm/mprotect.c                             |  2 +-
 tools/testing/selftests/vm/run_vmtests.sh |  2 +
 tools/testing/selftests/vm/soft-dirty.c   | 67 ++++++++++++++++++++++-
 5 files changed, 88 insertions(+), 3 deletions(-)
Signature · 1 line
2.32.0