函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Like copy_strings, but get argv and its values from kernel memory.

函数原型:int copy_strings_kernel(int argc, const char *const *__argv, struct linux_binprm *bprm)

返回类型:int

参数:

类型参数名称
intargc
const char *const *__argv
struct linux_binprm *bprm
598  oldfs等于获取当前进程地址空间上限()
599  struct user_arg_ptr argv = {native = (const char __user * const __user * )__argv, }
603  设置寄存器值(fs)
604  r等于'copy_strings()' copies argument/environment strings from the old* processes's memory to the new process's stack. The call to get_user_pages()* ensures the destination page is created and not swapped out.
605  设置寄存器值(fs)
607  返回:r
调用者
名称描述
__do_execve_filesys_execve() executes a new program.
load_em86
load_misc_binaryhe loader itself
load_script