]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
s390/mm,pageattr: add more page table walk sanity checks
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 1 Oct 2012 14:18:46 +0000 (16:18 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 2 Oct 2012 12:13:38 +0000 (14:13 +0200)
commit775b2db5cb01678f042c39fb27fe7bddfea4f2ed
treeb01094c6931986683ec221dc8f5cb249e29cda4b
parentdc2f8773ce3e45f300fd65ec50e5384d2c67e49d
s390/mm,pageattr: add more page table walk sanity checks

The current page table walk code in pageattr.c only checks for large pages
while walking the kernel page table, but happily assumes that everything
else is just fine.
Add more checks so we never access invalid memory regions.

Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/pageattr.c