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, 9 Oct 2012 12:16:57 +0000 (14:16 +0200)
commit5b1ba9e30cf0e259450da19189811eb140733f83
tree033759c49f3159e9514e8b08282e41977477064c
parent378b1e7a80a59325ca1036e892462db728126f84
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