Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\exec.c Create Date:2022-07-28 20:03:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:prepare_arg_pages

Proto:static int prepare_arg_pages(struct linux_binprm *bprm, struct user_arg_ptr argv, struct user_arg_ptr envp)

Type:int

Parameter:

TypeParameterName
struct linux_binprm *bprm
struct user_arg_ptrargv
struct user_arg_ptrenvp
455  argc = () counts the number of strings in array ARGV.
456  If argc < 0 Then Return argc
459  envc = () counts the number of strings in array ARGV.
460  If envc < 0 Then Return envc
471  limit = Limit the stack by to some sane default: root can always* increase this limit if needed.. 8MB seems reasonable. / 4 * 3
472  limit = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(limit, rlim_cur / 4)
477  limit = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, limit, # bytes of args + environ for exec() )
485  ptr_size = (argc + envc) * size of *
486  If limit <= ptr_size Then Return -E2BIG
488  limit -= ptr_size
490  argmin = p - limit
491  Return 0
Caller
NameDescribe
__do_execve_filesys_execve() executes a new program.