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:Like copy_strings, but get argv and its values from kernel memory.

Proto:int copy_strings_kernel(int argc, const char *const *__argv, struct linux_binprm *bprm)

Type:int

Parameter:

TypeParameterName
intargc
const char *const *__argv
struct linux_binprm *bprm
598  oldfs = get_fs()
599  struct user_arg_ptr argv = {native = (const char __user * const __user * )__argv, }
603  set_fs(KERNEL_DS)
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  set_fs(oldfs)
607  Return r
Caller
NameDescribe
__do_execve_filesys_execve() executes a new program.
load_em86
load_misc_binaryhe loader itself
load_script