函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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).

函数原型:static void acct_arg_size(struct linux_binprm *bprm, unsigned long pages)

返回类型:void

参数:

类型参数名称
struct linux_binprm *bprm
unsigned longpages
184  mm等于mm
185  diff等于pagesvma_pages
187  如果非mm或非diff则返回
190  vma_pages等于pages
191  add_mm_counter(mm, MM_ANONPAGES, diff)
调用者
名称描述
get_arg_page
flush_old_execCalling 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
__do_execve_filesys_execve() executes a new program.