函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Calling this is the point of no return. None of the failures will be* seen by userspace since either the process is already taking a fatal* signal (via de_thread() or coredump), or will have SEGV raised

函数原型:int flush_old_exec(struct linux_binprm *bprm)

返回类型:int

参数:

类型参数名称
struct linux_binprm *bprm
1265  retval等于This function makes sure the current process has its own signal table,* so that flush_signal_handlers can later reset the handlers without* disturbing other processes. (Other processes might share the signal* table via the CLONE_SIGHAND option to clone().)
1266  如果retval则转到:out
1274  set_mm_exe_file - change a reference to the mm's executable file* This changes mm's executable file (shown as symlink /proc/[pid]/exe)
1279  The nascent bprm->mm is not visible until exec_mmap() but it can* use a lot of memory, account these pages in current->mm temporary* for oom_badness()->get_mm_rss(). Once exec succeeds or fails, we* change the counter back via acct_arg_size(0).
1280  retval等于exec_mmap(mm)
1281  如果retval则转到:out
1290  mm = NULL
1292  设置寄存器值(fs)
1293  flags与等于Randomize virtual address space 按位或已调度未运行按位或I am a kernel thread 按位或This thread should not be frozen 按位或Userland is not allowed to meddle with cpus_mask 的值的反
1295  flush_thread()
1296  personality与等于per_clear的反
1304  do_close_on_exec(files)
1305  返回:0
1307  out :
1308  返回:retval
调用者
名称描述
load_aout_binaryThese are the functions used to load a.out style executables and shared* libraries. There is no binary dependent code anywhere else.
load_elf_binary
load_elf_fdpic_binaryload an fdpic binary into various bits of memory
load_flat_file