Commit f2f47d0e authored by Sven Schnelle's avatar Sven Schnelle Committed by Heiko Carstens

s390/mmap: increase stack/mmap gap to 128MB

This basically reverts commit 9e78a13b ("[S390] reduce miminum
gap between stack and mmap_base"). 32MB is not enough space
between stack and mmap for some programs. Given that compat
task aren't common these days, lets revert back to 128MB.
Signed-off-by: default avatarSven Schnelle <svens@linux.ibm.com>
Reviewed-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 2004b57c
......@@ -58,9 +58,9 @@ static inline unsigned long mmap_base(unsigned long rnd,
/*
* Top of mmap area (just below the process stack).
* Leave at least a ~32 MB hole.
* Leave at least a ~128 MB hole.
*/
gap_min = 32 * 1024 * 1024UL;
gap_min = SZ_128M;
gap_max = (STACK_TOP / 6) * 5;
if (gap < gap_min)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment