Skip to content

mm/userfaultfd: fix and cleanup for migration entries with uffd-wp

David Hildenbrand linux-mm lkml stable 2 versions Applied

Status from this message: [merged mm-stable] mm-userfaultfd-dont-consider-uffd-wp-bit-of-writable-migration-entries.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesApplied 2/2
  2. v12 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Add RB's
- "mm/userfaultfd: fix uffd-wp handling for THP migration entries" -> pmd_swp_uffd_wp(*pvmw->pmd) -> pmd_uffd_wp(pmdval)

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/userfaultfd: fix uffd-wp handling for THP migration entriesmm/huge_memory.c+12 -20 repliesApplied
2/2mm/userfaultfd: don't consider uffd-wp bit of writable migration entriesmm/huge_memory.c mm/mprotect.c+0 -40 repliesApplied

Reviews trailers per patch

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

PatchPeter Xu
1/2R-b
2/2R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] mm/userfaultfd: fix and cleanup for migration entries with uffd-wp

One fix and one cleanup.

uffd-wp migration entry handling for PTE/PMDs should now be fairly similar code-wise.

v1 -> v2:
- Add RB's
- "mm/userfaultfd: fix uffd-wp handling for THP migration entries" -> pmd_swp_uffd_wp(*pvmw->pmd) -> pmd_uffd_wp(pmdval)

Cc Andrew Morton <[email protected]>
Cc Peter Xu <[email protected]>
Cc Muhammad Usama Anjum <[email protected]>

David Hildenbrand (2):
mm/userfaultfd: fix uffd-wp handling for THP migration entries mm/userfaultfd: don't consider uffd-wp bit of writable migration
entries

 mm/huge_memory.c | 16 ++++++++++++----
 mm/mprotect.c    |  2 --
 2 files changed, 12 insertions(+), 6 deletions(-)
Signature · 1 line
2.39.2