]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm: make vm_area_dup() actually copy the old vma data
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Jul 2018 21:48:45 +0000 (14:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:07:14 +0000 (13:07 +0200)
commitae97be30fa7d9e99359598fcef22db0415e10181
tree5881b42dc3862f0fa90b48dcb5ad608a4ff5fd3d
parent5aac8b553059deec6d5d628f6da9271e247a0aac
mm: make vm_area_dup() actually copy the old vma data

[ Upstream commit 95faf6992df468f617edb788da8c21c6eed0dfa7 ]

.. and re-initialize th eanon_vma_chain head.

This removes some boiler-plate from the users, and also makes it clear
why it didn't need use the 'zalloc()' version.

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>
kernel/fork.c
mm/mmap.c
mm/nommu.c