]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Fri, 11 Aug 2017 10:37:11 +0000 (12:37 +0200)
commitd0daa13952a2059b944e826c3c26c920fc3549e6
tree1560b5fccbd84bad10d28a693f44cc0d4f993754
parent4372ea1e158be9e6ea710f9ff15c06a6f1bd6720
exec: Limit arg stack to at most 75% of _STK_LIM

BugLink: http://bugs.launchpad.net/bugs/1705707
commit da029c11e6b12f321f36dac8771e833b65cec962 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
fs/exec.c