Skip to content

userfaultfd: verify VMA state across UFFDIO_COPY retry

Mike Rapoport linux-mm lkml stable 2 versions – Applied

Status from this message: [merged mm-hotfixes-stable] userfaultfd-remove-redundant-check-in-vm_uffd_ops.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 11 repliesApplied 3/3
  2. v11 patch 17 repliesSuperseded

Changes in v2 from the cover letter

* rename vma_snapshot to mfill_retry_state and related functions, variables and constants
* drop redundant check for effective ops
* drop vma_uffd_copy_ops()
* restore large comment about MAP_PRIVATE handling and massage other comments
* new patches:
- guard against bugs that could end up with NULL ops in

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3userfaultfd: verify VMA state across UFFDIO_COPY retrymm/userfaultfd.c+73 -126 repliesApplied
2/3userfaultfd: refuse to __mfill_atomic_pte() for unsupported VMAsmm/userfaultfd.c+5 -04 repliesApplied
3/3userfaultfd: remove redundant check in vm_uffd_ops()mm/userfaultfd.c+1 -11 replyApplied

Reviews trailers per patch

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

PatchDavid CARLIERLorenzo Stoakes
1/3R-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.

Read the v2 thread

Cover letter [PATCH v2 0/3] userfaultfd: verify VMA state across UFFDIO_COPY retry

From: "Mike Rapoport (Microsoft)" <[email protected]>

... and two more small fixes.

This applies on top of the current mm-unstable with "userfaultfd: snapshot VMA state across UFFDIO_COPY retry" reverted.

v2 changes:
* rename vma_snapshot to mfill_retry_state and related functions, variables and constants
* drop redundant check for effective ops
* drop vma_uffd_copy_ops()
* restore large comment about MAP_PRIVATE handling and massage other comments
* new patches:
- guard against bugs that could end up with NULL ops in

    __mfill_atomic_pte()

- remove redundant check in vm_uffd_ops()

v1: https://lore.kernel.org/all/[email protected]

Mike Rapoport (Microsoft) (3):
userfaultfd: verify VMA state across UFFDIO_COPY retry
userfaultfd: refuse to __mfill_atomic_pte() for unsupported VMAs
userfaultfd: remove redundant check in vm_uffd_ops()

 mm/userfaultfd.c | 92 +++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 79 insertions(+), 13 deletions(-)
Signature · 1 line
2.53.0