函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Test whether a block of memory is a valid user space address.* Returns 0 if the range is valid, nonzero otherwise.

函数原型:static inline bool __chk_range_not_ok(unsigned long addr, unsigned long size, unsigned long limit)

返回类型:bool

参数:

类型参数名称
unsigned longaddr
unsigned longsize
unsigned longlimit
52  如果__builtin_constant_p(size)则返回:此条件成立可能性小(为编译器优化)(addr > limit - size)
56  addr加等于size
57  如果此条件成立可能性小(为编译器优化)(addr < size)则返回:true
59  返回:此条件成立可能性小(为编译器优化)(addr > limit)
调用者
名称描述
show_opcodesThere are a couple of reasons for the 2/3rd prologue, courtesy of Linus:* In case where we don't have the exact kernel image (which, if we did, we can* simply disassemble and navigate to the RIP), the purpose of the bigger* prologue is to have more