mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
Matoro reported various userspace crashes on the parisc platform with kernel 6.6 and bisected it to commit3033cd4307("parisc: Use generic mmap top-down layout and brk randomization"). That commit switched parisc to use the common infrastructure to calculate mmap_base, but missed that the mmap_base() function takes care for architectures where the stack grows downwards only. Fix the mmap_base() calculation to include the stack-grows-upwards case and thus fix the userspace crashes on parisc. Link: https://lkml.kernel.org/r/ZVH2qeS1bG7/1J/l@p100 Fixes:3033cd4307("parisc: Use generic mmap top-down layout and brk randomization") Signed-off-by: Helge Deller <[email protected]> Reported-by: matoro <[email protected]> Tested-by: matoro <[email protected]> Cc: <[email protected]> [6.6+] Signed-off-by: Andrew Morton <[email protected]>