Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exec: Limit arg stack to at most 75% of _STK_LIM
commit da029c1 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> [bwh: Backported to 3.16: replaced code is slightly different] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
- Loading branch information