linux-IllusionX/arch/parisc
Helge Deller 834fc2650b parisc: Allow mmap(MAP_STACK) memory to automatically expand upwards
commit 5d698966fa7b452035c44c937d704910bf3440dd upstream.

When userspace allocates memory with mmap() in order to be used for stack,
allow this memory region to automatically expand upwards up until the
current maximum process stack size.
The fault handler checks if the VM_GROWSUP bit is set in the vm_flags field
of a memory area before it allows it to expand.
This patch modifies the parisc specific code only.
A RFC for a generic patch to modify mmap() for all architectures was sent
to the mailing list but did not get enough Acks.

Reported-by: Camm Maguire <camm@maguirefamily.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org	# v5.10+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-10-10 12:03:53 +02:00
..
boot
configs
include parisc: Allow mmap(MAP_STACK) memory to automatically expand upwards 2024-10-10 12:03:53 +02:00
kernel parisc: Fix 64-bit userspace syscall path 2024-10-10 12:03:53 +02:00
lib
math-emu
mm parisc: Delay write-protection until mark_rodata_ro() call 2024-09-03 12:59:21 +02:00
net
video
defpalo.conf
install.sh
Kbuild
Kconfig
Kconfig.debug
Makefile