[PATCH 1/3] exec: Pass stack rlimit into mm layout functions

2018-02-14 Thread Kees Cook
Since it is possible that the stack rlimit can change externally during exec (either via another thread calling setrlimit() or another process calling prlimit()), provide a way to pass the rlimit down into the per-architecture mm layout functions so that the rlimit can stay in the bprm structure in

[PATCH 1/3] exec: Pass stack rlimit into mm layout functions

2018-01-09 Thread Kees Cook
Since it is possible that the stack rlimit can change externally during exec (either via another thread calling setrlimit() or another process calling prlimit()), provide a way to pass the rlimit down into the per-architecture mm layout functions so that the rlimit can stay in the bprm structure in