Skip to content

mremap: move_vma() fixes

Dmitry Safonov linux-fsdevel linux-mm lkml 1 version Applied

Status from this message: [merged] mm-forbid-splitting-special-mappings.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6mm/mremap: Account memory on do_munmap() failuremm/mremap.c+2 -10 repliesApplied
2/6mm/mremap: For MREMAP_DONTUNMAP check security_vm_enough_memory_mm()mm/mremap.c+13 -233 repliesApplied
3/6mremap: Don't allow MREMAP_DONTUNMAP on special_mappings and aioarch/x86/kernel/cpu/resctrl/pseudo_lock.c fs/aio.c include/linux/mm.h +2 more+12 -53 repliesApplied
4/6vm_ops: Rename .split() callback to .may_split()drivers/dax/device.c include/linux/mm.h ipc/shm.c +2 more+11 -100 repliesApplied
5/6mremap: Check if it's possible to split original vmamm/mremap.c+10 -10 repliesApplied
6/6mm: Forbid splitting special mappingsarch/arm/kernel/vdso.c arch/arm64/kernel/vdso.c arch/mips/vdso/genvdso.c +3 more+16 -783 repliesApplied

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchWill Deacon
1/6
2/6
3/6
4/6
5/6
6/6A-b

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

Read the v1 thread

Cover letter [PATCH 0/6] mremap: move_vma() fixes

1 - seems to be historical issue on a rarely taken path 2,3 - fixes related to the new mremap() flag
5 - dax device/hugetlbfs possible issue

4,6 - refactoring

As those seems to be actual issues, sending this during the merge-window.

(Changes to architecture code are in the 6 patch, but Cc'ing maintainers on cover for the context, I hope it's fine).

Cc Alexander Viro <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Brian Geffon <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Dan Williams <[email protected]>
Cc Dave Jiang <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Mike Kravetz <[email protected]>
Cc Minchan Kim <[email protected]>
Cc Russell King <[email protected]>
Cc Thomas Bogendoerfer <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Vishal Verma <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Will Deacon <[email protected]>

Dmitry Safonov (6):
mm/mremap: Account memory on do_munmap() failure mm/mremap: For MREMAP_DONTUNMAP check security_vm_enough_memory_mm()
mremap: Don't allow MREMAP_DONTUNMAP on special_mappings and aio
vm_ops: Rename .split() callback to .may_split()
mremap: Check if it's possible to split original vma
mm: Forbid splitting special mappings

 arch/arm/kernel/vdso.c                    |  9 ----
 arch/arm64/kernel/vdso.c                  | 41 ++-----------------
 arch/mips/vdso/genvdso.c                  |  4 --
 arch/s390/kernel/vdso.c                   | 11 +----
 arch/x86/entry/vdso/vma.c                 | 17 --------
 arch/x86/kernel/cpu/resctrl/pseudo_lock.c |  2 +-
 drivers/dax/device.c                      |  4 +-
 fs/aio.c                                  |  5 ++-
 include/linux/mm.h                        |  5 ++-
 ipc/shm.c                                 |  8 ++--
 mm/hugetlb.c                              |  2 +-
 mm/mmap.c                                 | 22 ++++++++--
 mm/mremap.c                               | 50 +++++++++++------------
 13 files changed, 63 insertions(+), 117 deletions(-)

base-commit: bbf5c979011a099af5dc76498918ed7df445635b

Signature · 1 line
2.28.0