[PATCH] NOMMU: Check VMA protections
commit7b4d5b8b39fd3701ed3693a89f2bd8f6ef49bce2
authorDavid Howells <dhowells@redhat.com>
Wed, 27 Sep 2006 08:50:18 +0000 (27 01:50 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Sep 2006 15:26:14 +0000 (27 08:26 -0700)
treeb1741de6753ec41a45a7b69276eeccb1bcb3e46d
parent910e46da4b4e93d56ffea318c64afa41868d5e6d
[PATCH] NOMMU: Check VMA protections

Check the VMA protections in get_user_pages() against what's being asked.

This checks to see that we don't accidentally write on a non-writable VMA or
permit an I/O mapping VMA to be accessed (which may lack page structs).

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/nommu.c