mm: zero out the vma in vma_init()
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 22 Aug 2018 04:53:06 +0000 (21:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Aug 2018 17:52:44 +0000 (10:52 -0700)
commita670468f5e0b5fad4db6e4d195f15915dc2a35c1
tree57540edd0f9f24335154139c17695a13b594fe58
parenta3bf6ce366496016990d8578af74673ea04178ff
mm: zero out the vma in vma_init()

Rather than in vm_area_alloc().  To ensure that the various oddball
stack-based vmas are in a good state.  Some of the callers were zeroing
them out, others were not.

Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/kernel/process.c
fs/hugetlbfs/inode.c
include/linux/mm.h
kernel/fork.c
mm/mempolicy.c
mm/shmem.c