函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\uaccess.h Create Date:2022-07-27 06:58:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static __must_check __always_inline bool user_access_begin(const void __user *ptr, size_t len)

返回类型:bool

参数:

类型参数名称
const void __user *ptr
size_tlen
714  如果此条件成立可能性小(为编译器优化)(!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))则返回:0
716  __uaccess_begin_nospec()
717  返回:1
调用者
名称描述
check_zeroed_userheck_zeroed_user: check if a userspace buffer only contains zero bytes*@from: Source address, in userspace
strncpy_from_user复制用户字符串
strnlen_user用户字符串长度
SYSCALL_DEFINE5
COMPAT_SYSCALL_DEFINE5
compat_get_bitmap
compat_put_bitmap
filldir
filldir64