]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mm: introduce VM_POPULATE flag to better deal with racy userspace programs"
authorMichel Lespinasse <walken@google.com>
Thu, 28 Mar 2013 23:26:23 +0000 (16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 29 Mar 2013 00:45:51 +0000 (17:45 -0700)
commit55e317e2091fa05cae6d6cf86db8cddf6eb58d5d
treee6f0985223c87408773c3b81428935d3ce99931b
parentdacd4c2470d4fa0577a725271e5f463d4aba3db3
Revert "mm: introduce VM_POPULATE flag to better deal with racy userspace programs"

This reverts commit f699e4644003 ("mm: introduce VM_POPULATE flag to
better deal with racy userspace programs").

VM_POPULATE only has any effect when userspace plays racy games with
vmas by trying to unmap and remap memory regions that mmap or mlock are
operating on.

Also, the only effect of VM_POPULATE when userspace plays such games is
that it avoids populating new memory regions that get remapped into the
address range that was being operated on by the original mmap or mlock
calls.

Let's remove VM_POPULATE as there isn't any strong argument to mandate a
new vm_flag.

Signed-off-by: Michel Lespinasse <walken@google.com>
Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
include/linux/mman.h
mm/fremap.c
mm/mlock.c
mm/mmap.c