diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2020-07-12 08:23:54 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2020-07-21 08:24:52 -0500 |
commit | d8b9cd549ecf0f3dc8da42ada5f0ce73e8ed5f1e (patch) | |
tree | 82f46fe91d016c1dec6665d7b1031805a24566b5 /fs/afs/callback.c | |
parent | 0c9cdff054aec0836bb38a449e860793849c3f84 (diff) | |
download | linux-d8b9cd549ecf0f3dc8da42ada5f0ce73e8ed5f1e.tar.gz linux-d8b9cd549ecf0f3dc8da42ada5f0ce73e8ed5f1e.tar.bz2 linux-d8b9cd549ecf0f3dc8da42ada5f0ce73e8ed5f1e.zip |
exec: Factor bprm_stack_limits out of prepare_arg_pages
In preparation for implementiong kernel_execve (which will take kernel
pointers not userspace pointers) factor out bprm_stack_limits out of
prepare_arg_pages. This separates the counting which depends upon the
getting data from userspace from the calculations of the stack limits
which is usable in kernel_execve.
The remove prepare_args_pages and compute bprm->argc and bprm->envc
directly in do_execveat_common, before bprm_stack_limits is called.
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lkml.kernel.org/r/87365u6x60.fsf@x220.int.ebiederm.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/afs/callback.c')
0 files changed, 0 insertions, 0 deletions