函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\exec.c Create Date:2022-07-29 10:33:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:prepare_arg_pages

函数原型:static int prepare_arg_pages(struct linux_binprm *bprm, struct user_arg_ptr argv, struct user_arg_ptr envp)

返回类型:int

参数:

类型参数名称
struct linux_binprm *bprm
struct user_arg_ptrargv
struct user_arg_ptrenvp
455  argc等于() counts the number of strings in array ARGV.
456  如果argc小于0则返回:argc
459  envc等于() counts the number of strings in array ARGV.
460  如果envc小于0则返回: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等于两数取小(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等于argcenvc的和乘*的长度
486  如果limit小于等于ptr_size则返回:负E2BIG
488  limit减等于ptr_size
490  argmin等于plimit
491  返回:0
调用者
名称描述
__do_execve_filesys_execve() executes a new program.