函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Arguments are '\0' separated strings found at the location bprm->p* points to; chop off the first by relocating brpm->p to right after* the first '\0' encountered.

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

返回类型:int

参数:

类型参数名称
struct linux_binprm *bprm
1597  ret等于0
1602  如果非argc则返回:0
1605  循环
1606  offset等于p按位与PAGE_MASK的反
1607  page等于get_arg_page(bprm, p, 0)
1608  如果非page
1609  ret等于负EFAULT
1610  转到:out
1612  kaddr等于kmap_atomic(page)
1614 offset小于PAGE_SIZEkaddr[offset]循环Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(kaddr)
1619  put_arg_page(page)
1620 offset恒等于PAGE_SIZE循环
1622  p自加
1623  argc自减
1624  ret等于0
1626  out :
1627  返回:ret
调用者
名称描述
load_em86
load_misc_binaryhe loader itself
load_script