s390/mm: Fix crst upgrade of mmap with MAP_FIXED
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Mon, 11 Feb 2013 13:29:49 +0000 (14:29 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 14 Feb 2013 14:55:22 +0000 (15:55 +0100)
commit486c0a0bc80d370471b21662bf03f04fbb37cdc6
tree29b538296d454871ba0b4dd9802e0e154eb2102b
parenta4e69245bd7793a620ed67442c00fa1f2dd56891
s390/mm: Fix crst upgrade of mmap with MAP_FIXED

Right now the page table upgrade does not happen if the end address
of a fixed mapping is greater than TASK_SIZE.
Enhance s390_mmap_check() to handle MAP_FIXED mappings correctly.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/mman.h
arch/s390/mm/mmap.c