[PATCH v3 14/15] exec: Use sane stack rlimit under secureexec
From: jmorris@namei.org (James Morris)
Date: 2017-07-19 09:43:13
Also in:
linux-fsdevel, lkml
From: jmorris@namei.org (James Morris)
Date: 2017-07-19 09:43:13
Also in:
linux-fsdevel, lkml
On Tue, 18 Jul 2017, Kees Cook wrote:
For a secureexec, before memory layout selection has happened, reset the stack rlimit to something sane to avoid the caller having control over the resulting layouts. $ ulimit -s 8192 $ ulimit -s unlimited $ /bin/sh -c 'ulimit -s' unlimited $ sudo /bin/sh -c 'ulimit -s' 8192 Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Kees Cook <redacted>
Reviewed-by: James Morris <redacted> -- James Morris [off-list ref] -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html