parisc: Make user stack size configurable
authorHelge Deller <deller@gmx.de>
Fri, 6 Nov 2020 18:41:36 +0000 (19:41 +0100)
committerHelge Deller <deller@gmx.de>
Wed, 11 Nov 2020 13:59:08 +0000 (14:59 +0100)
commit22ee3ea588dfc84ccb8cea5ea37051dfed91b9b9
tree0eacf3308bcf6a80333f9f15a4424835bd9c3567
parentc984baad3d8dd8555d23f0598fb81c3e0ea04c0e
parisc: Make user stack size configurable

On parisc we need to initialize the memory layout for the user stack at
process start time to a fixed size, which up until now was limited to
the size as given by CONFIG_MAX_STACK_SIZE_MB at compile time.

This hard limit was too small and showed problems when compiling
ruby2.7, qmlcachegen and some Qt packages.

This patch changes two things:
a) It increases the default maximum stack size to 100MB.
b) Users can modify the stack hard limit size with ulimit and then newly
   forked processes will use the given stack size which can even be bigger
   than the default 100MB.

Reported-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/processor.h
arch/parisc/kernel/sys_parisc.c
fs/exec.c
mm/Kconfig