NOMMU: Lock i_mmap_mutex for access to the VMA prio list
authorDavid Howells <dhowells@redhat.com>
Thu, 23 Feb 2012 13:50:35 +0000 (13:50 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Feb 2012 16:59:04 +0000 (08:59 -0800)
commit918e556ec214ed2f584e4cac56d7b29e4bb6bf27
treecf2ba7c88f4b349d1120517f09ec4588f12eb285
parent37e79cbf7d45451fb4d1213184e484723c25c65a
NOMMU: Lock i_mmap_mutex for access to the VMA prio list

Lock i_mmap_mutex for access to the VMA prio list to prevent concurrent
access.  Currently, certain parts of the mmap handling are protected by
the region mutex, but not all.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/nommu.c