]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:44:18 +0000 (19:44 -0600)
commit0d2c7e0257761eb1ba1422ddba348ca8cd43b59a
treec52c3e85341a5ff39489a4e4dec5cf4de2ccd90a
parentee8cad6edb1a92c0858a1755eab223b3d5567262
mm: make vm_area_alloc() initialize core fields

BugLink: https://bugs.launchpad.net/bugs/1835845
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
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