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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -58,9 +58,9 @@ static inline unsigned long mmap_base(unsigned long rnd,


	/*
	/*
	 * Top of mmap area (just below the process stack).
	 * 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;
	gap_max = (STACK_TOP / 6) * 5;


	if (gap < gap_min)
	if (gap < gap_min)