execve.2: Note that stack+environ size is also limited to 3/4 of _STK_LIM
commit4a696f5ebd6bb22258e32b409134f57bd97fe7ed
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 5 May 2019 12:34:13 +0000 (5 07:34 -0500)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 5 May 2019 12:34:13 +0000 (5 07:34 -0500)
tree32c711be07cab4038a7697deba01df3cdb8059a1
parentc7dc46d0a278cdeeb37107727bcf0bfe58d53ab6
execve.2: Note that stack+environ size is also limited to 3/4 of _STK_LIM

In fs/exec.c::prepare_arg_pages(), we have:

        limit = _STK_LIM / 4 * 3;
        limit = min(limit, bprm->rlim_stack.rlim_cur / 4);

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/execve.2