Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\uaccess.h Create Date:2022-07-28 05:59:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:The "unsafe" user accesses aren't really "unsafe", but the naming* is a big fat warning: you have to not only do the access_ok()* checking before using them, but you have to surround them with the* user_access_begin/end() pair.

Proto:static __must_check __always_inline bool user_access_begin(const void __user *ptr, size_t len)

Type:bool

Parameter:

TypeParameterName
const void __user *ptr
size_tlen
714  If Value for the false possibility is greater at compile time(!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.(ptr, len)) Then Return 0
716  __uaccess_begin_nospec()
717  Return 1
Caller
NameDescribe
check_zeroed_userheck_zeroed_user: check if a userspace buffer only contains zero bytes*@from: Source address, in userspace
strncpy_from_userCopy a NUL terminated string from userspace
strnlen_userGet the size of a string in user space
SYSCALL_DEFINE5
COMPAT_SYSCALL_DEFINE5
compat_get_bitmap
compat_put_bitmap
filldir
filldir64