Files
linux/arch/parisc/include/asm
Helge Deller 5f74f820f6 parisc: fix mmap_base calculation when stack grows upwards
Matoro reported various userspace crashes on the parisc platform with kernel
6.6 and bisected it to commit 3033cd4307 ("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 <deller@gmx.de>
Reported-by: matoro <matoro_mailinglist_kernel@matoro.tk>
Tested-by: matoro <matoro_mailinglist_kernel@matoro.tk>
Cc: <stable@vger.kernel.org>	[6.6+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-11-15 15:30:09 -08:00
..
2022-06-28 13:20:21 +02:00
2022-02-25 09:36:06 +01:00
2023-08-18 10:12:35 -07:00
2023-02-13 22:13:29 +01:00
2021-10-30 23:11:00 +02:00
2022-03-11 19:49:30 +01:00
2019-06-25 14:52:26 +02:00
2023-08-31 21:42:42 +02:00
2022-03-11 19:49:30 +01:00
2019-07-16 19:23:24 -07:00
2022-03-11 19:49:30 +01:00
2022-03-11 19:49:30 +01:00