[PATCH v2 0/3] userfaultfd: verify VMA state across UFFDIO_COPY retry
From: Mike Rapoport
Date: Wed May 27 2026 - 14:50:07 EST
From: "Mike Rapoport (Microsoft)" <rppt@xxxxxxxxxx>
... 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/20260519052516.3315196-1-rppt@xxxxxxxxxx
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(-)
--
2.53.0