]> git.baikalelectronics.ru Git - kernel.git/commit
exec: Limit arg stack to at most 75% of _STK_LIM
authorKees Cook <keescook@chromium.org>
Fri, 7 Jul 2017 18:57:29 +0000 (11:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 8 Jul 2017 03:05:08 +0000 (20:05 -0700)
commit0b7fcea79204d4f67b9d4c3528a1d3466c879ae3
tree0ba6e0c9338f1b3de6498793ecff2643c4fd289c
parentbc7a15ba36e9a41e922a0d164765bd1ef4e5da8e
exec: Limit arg stack to at most 75% of _STK_LIM

To avoid pathological stack usage or the need to special-case setuid
execs, just limit all arg stack usage to at most 75% of _STK_LIM (6MB).

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c