函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\lib\usercopy_32.c Create Date:2022-07-27 08:23:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:用户内存块清零

函数原型:unsigned long clear_user(void __user *to, unsigned long n)

返回类型:unsigned long

参数:

类型参数名称
void __user *to
unsigned longn
69  might_fault()
70  如果access_ok - Checks if a user space pointer is valid*@addr: User space pointer to start of block to check*@size: Size of block to check* Context: User context only. This function may sleep if pagefaults are* enabled.(to, n)则Zero Userspace(to, n)
72  返回:n
调用者
名称描述
test_copy_struct_from_user
read_default_ldt
clear_rseq_cs
COMPAT_SYSCALL_DEFINE5
keyctl_pkey_queryQuery information about an asymmetric key.
copy_fid_to_user
padzeroWe need to explicitly zero any fractional pagesafter the data section (i.e. bss). This wouldcontain the junk from the file that should notbe in memory
load_elf_binary
elf_fdpic_map_file_by_direct_mmapmap a binary by direct mmap() of the individual PT_LOAD segments
load_flat_file
iov_iter_zero
read_ldt
copy_siginfo_to_user32
copy_siginfo_to_user
copy_nodes_to_userCopy a kernel node mask to user space
keyctl_capabilitiesGet keyrings subsystem capabilities.
copy_event_to_userCopy an event to user space, returning how much we copied.* We already checked that the event size is smaller than the* buffer we had in "get_one_event()" above.