Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\exec.c Create Date:2022-07-28 20:04:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:int remove_arg_zero(struct linux_binprm *bprm)

Type:int

Parameter:

TypeParameterName
struct linux_binprm *bprm
1597  ret = 0
1602  If Not argc Then Return 0
1605  Do
1606  offset = p & ~PAGE_MASK
1607  page = get_arg_page(bprm, p, 0)
1608  If Not page Then
1609  ret = -EFAULT
1610  Go to out
1612  kaddr = kmap_atomic(page)
1614  When offset < PAGE_SIZE && kaddr[offset] cycle 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  When offset == PAGE_SIZE cycle
1622  p++
1623  argc--
1624  ret = 0
1626  out :
1627  Return ret
Caller
NameDescribe
load_em86
load_misc_binaryhe loader itself
load_script