Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\usercopy.c Create Date:2022-07-28 16:35:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_bogus_address

Proto:static inline void check_bogus_address(const unsigned long ptr, unsigned long n, bool to_user)

Type:void

Parameter:

TypeParameterName
const unsigned longptr
unsigned longn
boolto_user
151  If ptr + n - 1 < ptr Then usercopy_abort("wrapped address", NULL, to_user, 0, ptr + n)
155  If ZERO_OR_NULL_PTR(ptr) Then usercopy_abort("null address", NULL, to_user, ptr, n)
Caller
NameDescribe
__check_object_sizeValidates that the given object is:* - not bogus address* - fully contained by stack (or stack frame, when available)* - fully within SLAB object (or object whitelist area, when available)* - not in kernel text