mm: make vm_area_alloc() initialize core fields
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Jul 2018 22:24:03 +0000 (15:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:07:14 +0000 (13:07 +0200)
commitd9b875a4a1a49414bfed766614901b41aefffe4f
treed2a1001264d05da0bc1f314937dec7349e059297
parentae97be30fa7d9e99359598fcef22db0415e10181
mm: make vm_area_alloc() initialize core fields

[ Upstream commit 490fc053865c9cc40f1085ef8a5504f5341f79d2 ]

Like vm_area_dup(), it initializes the anon_vma_chain head, and the
basic mm pointer.

The rest of the fields end up being different for different users,
although the plan is to also initialize the 'vm_ops' field to a dummy
entry.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/ia64/kernel/perfmon.c
arch/ia64/mm/init.c
fs/exec.c
include/linux/mm.h
kernel/fork.c
mm/mmap.c
mm/nommu.c