]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[S390] mmap: consider stack address randomization
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 12 Jan 2011 08:55:22 +0000 (09:55 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Wed, 12 Jan 2011 08:55:24 +0000 (09:55 +0100)
commit9046e401e752dba784805a7818f99cc45a39cbff
tree0f05676ac01a7892b7fddf4e9f3a7e335c1f78d1
parent7a63fa1a85d75756368d9c86fff5c1b193de991c
[S390] mmap: consider stack address randomization

Consider stack address randomization when calulating mmap_base for
flexible mmap layout . Because of address randomization the stack
address can be up to 8MB lower than STACK_TOP.
When calculating mmap_base this isn't taken into account, which could
lead to the case that the gap between the real stack top and mmap_base
is lower than what ulimit specifies for the maximum stack size.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/elf.h
arch/s390/mm/mmap.c