]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBrian Maly <brian.maly@oracle.com>
Fri, 28 Sep 2018 02:42:01 +0000 (22:42 -0400)
commitacadafcd9b015413f5236b8d7c9e256fa839a938
tree1d983531e3547c2ead07db1f1835ead917ec1c8c
parentd85dd56a51fa6d43a0c11e18b09b07faca8f09d0
exec: Limit arg stack to at most 75% of _STK_LIM

Orabug: 28709994
CVE: CVE-2018-14634

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>
(cherry picked from commit da029c11e6b12f321f36dac8771e833b65cec962)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
fs/exec.c