Revert "mm: only enforce minimum stack gap size if it's sensible"

This reverts commit 2735539096.
This commit is contained in:
Ksawlii 2024-11-24 00:23:13 +01:00
parent 0bd52cb48d
commit b96c98434a

View file

@ -423,7 +423,7 @@ static unsigned long mmap_base(unsigned long rnd, struct rlimit *rlim_stack)
if (gap + pad > gap)
gap += pad;
if (gap < MIN_GAP && MIN_GAP < MAX_GAP)
if (gap < MIN_GAP)
gap = MIN_GAP;
else if (gap > MAX_GAP)
gap = MAX_GAP;