Skip to content

mm: backport sticky VMA flags and soft-dirty fix

Ahmed Elaidy linux-mm stable 2 versions – Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 11 repliesApplied
  2. v19 patches 3 repliesSuperseded

Changes in v4 from the cover letter

- Reverted to sending the full 9-patch series as requested by Greg KH and Lorenzo.
- Updated Lorenzo's email to [email protected] across all patches.
- Added Cc: [email protected] # 6.18.x to all patches.
- Added Fixes tag for soft-dirty merging in Patch 8.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/9mm: introduce VM_MAYBE_GUARD and make visible in /proc/$pid/smapsDocumentation/filesystems/proc.rst fs/proc/task_mmu.c include/linux/mm.h +3 more+13 -21 reply
2/9mm: add atomic VMA flags and set VM_MAYBE_GUARD as suchinclude/linux/mm.h+44 -01 reply
3/9mm: update vma_modify_flags() to handle residual flags, documentmm/madvise.c mm/mlock.c mm/mprotect.c +4 more+143 -691 reply
4/9mm: implement sticky VMA flagsinclude/linux/mm.h mm/vma.c mm/vma.h +1 more+77 -201 reply
5/9mm: introduce copy-on-fork VMAs and make VM_MAYBE_GUARD oneinclude/linux/mm.h mm/memory.c tools/testing/vma/vma_internal.h+56 -141 reply
6/9mm: set the VM_MAYBE_GUARD flag on guard region installmm/khugepaged.c mm/madvise.c+61 -321 reply
7/9tools/testing/vma: add VMA sticky userland teststools/testing/vma/vma.c+79 -100 replies
8/9mm: propagate VM_SOFTDIRTY on mergeinclude/linux/mm.h tools/testing/vma/vma_internal.h+13 -201 reply
9/9testing/selftests/mm: add soft-dirty merge self-testtools/testing/selftests/mm/soft-dirty.c+126 -11 reply

Reviews trailers per patch

7 of 9 patches have a Reviewed-by or Acked-by.

PatchPedro FalcatoVlastimil BabkaDavid Hildenbrand (Red Hat)Lance YangAndrey VaginCyrill Gorcunov
1/9R-b R-b R-b R-b A-b A-b R-b R-b
2/9R-b R-b R-b R-b A-b A-b R-b R-b
3/9R-b R-b R-b R-b
4/9R-b R-b R-b R-b
5/9R-b R-b R-b R-b A-b A-b
6/9R-b R-b
7/9
8/9R-b R-b R-b R-b A-b A-b A-b A-b A-b A-b
9/9

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

Read the v4 thread

Cover letter [PATCH 6.18.y v4 0/9] mm: backport sticky VMA flags and soft-dirty fix

This series backports the sticky VMA flags infrastructure and the VM_SOFTDIRTY-on-merge fix to linux-6.18.y.

Motivation: CRIU incremental dump/restore can hit a missing-parent-pagemap failure when VM_SOFTDIRTY is lost during VMA merge operations.

Patch 8 is the target fix:
mm: propagate VM_SOFTDIRTY on merge

The preceding patches provide required dependencies on 6.18.y and are included to preserve upstream behavior, as requested by maintainers for stable backports.

Changes since v3:
- Reverted to sending the full 9-patch series as requested by Greg KH and Lorenzo.
- Updated Lorenzo's email to [email protected] across all patches.
- Added Cc: [email protected] # 6.18.x to all patches.
- Added Fixes tag for soft-dirty merging in Patch 8.

Lorenzo Stoakes (9):
mm: introduce VM_MAYBE_GUARD and make visible in /proc/$pid/smaps
mm: add atomic VMA flags and set VM_MAYBE_GUARD as such
mm: update vma_modify_flags() to handle residual flags, document
mm: implement sticky VMA flags
mm: introduce copy-on-fork VMAs and make VM_MAYBE_GUARD one
mm: set the VM_MAYBE_GUARD flag on guard region install tools/testing/vma: add VMA sticky userland tests
mm: propagate VM_SOFTDIRTY on merge testing/selftests/mm: add soft-dirty merge self-test

 Documentation/filesystems/proc.rst      |   5 +-
 fs/proc/task_mmu.c                      |   1 +
 include/linux/mm.h                      | 100 +++++++++++++++++
 include/trace/events/mmflags.h          |   1 +
 mm/khugepaged.c                         |  71 +++++++-----
 mm/madvise.c                            |  24 +++--
 mm/memory.c                             |  14 +--
 mm/mlock.c                              |   2 +-
 mm/mprotect.c                           |   2 +-
 mm/mseal.c                              |   7 +-
 mm/vma.c                                |  81 +++++++-------
 mm/vma.h                                | 138 +++++++++++++++++-------
 tools/testing/selftests/mm/soft-dirty.c | 127 +++++++++++++++++++++-
 tools/testing/vma/vma.c                 |  92 ++++++++++++++--
 tools/testing/vma/vma_internal.h        |  49 +++++++++
 15 files changed, 579 insertions(+), 135 deletions(-)
Signature · 1 line
2.54.0