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:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static inline bool __chk_range_not_ok(unsigned long addr, unsigned long size, unsigned long limit)

Type:bool

Parameter:

TypeParameterName
unsigned longaddr
unsigned longsize
unsigned longlimit
52  If __builtin_constant_p(size) Then Return Value for the false possibility is greater at compile time(addr > limit - size)
56  addr += size
57  If Value for the false possibility is greater at compile time(addr < size) Then Return true
59  Return Value for the false possibility is greater at compile time(addr > limit)
Caller
NameDescribe
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