diff options
author | Helge Deller <deller@kernel.org> | 2024-09-08 20:51:17 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2024-09-16 23:01:43 +0200 |
commit | 5d698966fa7b452035c44c937d704910bf3440dd (patch) | |
tree | 44b949404fa973cc06237d42df6e8e7f4e1bc01c /fs/exec.c | |
parent | 75f653f0c6318ae0acfd6277efba3f9bd7cf837c (diff) |
parisc: Allow mmap(MAP_STACK) memory to automatically expand upwards
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+
Diffstat (limited to 'fs/exec.c')
0 files changed, 0 insertions, 0 deletions