]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] NOMMU: Check VMA protections
authorDavid Howells <dhowells@redhat.com>
Wed, 27 Sep 2006 08:50:18 +0000 (01:50 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Sep 2006 15:26:14 +0000 (08:26 -0700)
commitc4a32e6ec34e7f9a1b7c3e56c613422ebee6647b
treeb1741de6753ec41a45a7b69276eeccb1bcb3e46d
parent687eb5001f7e0516dbe3949d1eae9722f7b86d4a
[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