]> err.no Git - linux-2.6/commit
[PATCH] Check if start address is in vma region in NOMMU function get_user_pages()
authorSonic Zhang <sonic.adi@gmail.com>
Wed, 27 Sep 2006 08:50:17 +0000 (01:50 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Sep 2006 15:26:14 +0000 (08:26 -0700)
commit910e46da4b4e93d56ffea318c64afa41868d5e6d
tree67f7dd9086dcf456101c843a1e310e7090a590db
parent0159b141d8b1f9b9f9cffacae47bec1e05c63b8b
[PATCH] Check if start address is in vma region in NOMMU function get_user_pages()

In NOMMU arch, if run "cat /proc/self/mem", data from physical address 0
are read.  This behavior is different from MMU arch.  In IA32, message
"cat: /proc/self/mem: Input/output error" is reported.

This issue is rootcaused by not validate the start address in NOMMU
function get_user_pages().  Following patch solves this issue.

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