Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\lib\usercopy_32.c Create Date:2022-07-28 07:24:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lear_user - Zero a block of memory in user space.*@to: Destination address, in user space.*@n: Number of bytes to zero.* Zero a block of memory in user space.* Return: number of bytes that could not be cleared.* On success, this will be zero.

Proto:unsigned long clear_user(void __user *to, unsigned long n)

Type:unsigned long

Parameter:

TypeParameterName
void __user *to
unsigned longn
69  might_fault()
70  If 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) Then Zero Userspace(to, n)
72  Return n
Caller
NameDescribe
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