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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 00:31:11 +0000 (16:31 -0800)
commit8f6c3d1a5873d9190bd6259357900ddebc308626
tree1a3646b013d3384fb1adef347c72fcdeb4c3237b
parent8f421627d178f1346bb68c9e7b32b2bd5844ce1d
NOMMU: Lock i_mmap_mutex for access to the VMA prio list

commit 918e556ec214ed2f584e4cac56d7b29e4bb6bf27 upstream.

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/nommu.c