[PATCHv3 0/3] Fix crash due to vma_is_anonymous() false-positives

From: Kirill A. Shutemov
Date: Tue Jul 24 2018 - 08:11:44 EST


Fix crash found by syzkaller.

Build on top of Linus' changes in 4.18-rc6.

Andrew, could you please drop mm-drop-unneeded-vm_ops-checks-v2.patch for
now. Infiniband drivers have to be fixed first.

Kirill A. Shutemov (3):
mm: Introduce vma_init()
mm: Use vma_init() to initialize VMAs on stack and data segments
mm: Fix vma_is_anonymous() false-positives

arch/arm/kernel/process.c | 1 +
arch/arm/mach-rpc/ecard.c | 2 +-
arch/arm64/include/asm/tlb.h | 4 +++-
arch/arm64/mm/hugetlbpage.c | 7 +++++--
arch/ia64/include/asm/tlb.h | 2 +-
arch/ia64/mm/init.c | 2 +-
arch/x86/um/mem_32.c | 2 +-
drivers/char/mem.c | 1 +
fs/exec.c | 1 +
fs/hugetlbfs/inode.c | 2 ++
include/linux/mm.h | 14 ++++++++++++++
kernel/fork.c | 6 ++----
mm/mempolicy.c | 1 +
mm/mmap.c | 3 +++
mm/nommu.c | 2 ++
mm/shmem.c | 1 +
16 files changed, 40 insertions(+), 11 deletions(-)

--
2.18.0