[PATCH 0/6] mremap: move_vma() fixes
From: Dmitry Safonov
Date: Mon Oct 12 2020 - 22:42:05 EST
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 <viro@xxxxxxxxxxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: Andy Lutomirski <luto@xxxxxxxxxx>
Cc: Brian Geffon <bgeffon@xxxxxxxxxx>
Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
Cc: Dan Williams <dan.j.williams@xxxxxxxxx>
Cc: Dave Jiang <dave.jiang@xxxxxxxxx>
Cc: Hugh Dickins <hughd@xxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
Cc: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
Cc: Minchan Kim <minchan@xxxxxxxxxx>
Cc: Russell King <linux@xxxxxxxxxxxxxxx>
Cc: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Vishal Verma <vishal.l.verma@xxxxxxxxx>
Cc: Vlastimil Babka <vbabka@xxxxxxx>
Cc: Will Deacon <will@xxxxxxxxxx>
Cc: linux-aio@xxxxxxxxx
Cc: linux-fsdevel@xxxxxxxxxxxxxxx
Cc: linux-mm@xxxxxxxxx
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
--
2.28.0