Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kasan\generic.c Create Date:2022-07-28 15:53:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_memory_region_inline

Proto:static __always_inline bool check_memory_region_inline(unsigned long addr, size_t size, bool write, unsigned long ret_ip)

Type:bool

Parameter:

TypeParameterName
unsigned longaddr
size_tsize
boolwrite
unsigned longret_ip
173  If Value for the false possibility is greater at compile time(size == 0) Then Return true
176  If Value for the false possibility is greater at compile time((void * )addr < kasan_shadow_to_mem((void * )Compiler uses shadow offset assuming that addresses start* from 0. Kernel addresses don't start from 0, so shadow* for kernel really starts from compiler's shadow offset +* 'kernel address space start' >> KASAN_SHADOW_SCALE_SHIFT)) Then
178  kasan_report(addr, size, write, ret_ip)
179  Return false
182  If Value is more likely to compile time(!memory_is_poisoned(addr, size)) Then Return true
185  kasan_report(addr, size, write, ret_ip)
186  Return false
Caller
NameDescribe
check_memory_region
__asan_load1
__asan_store1
__asan_load2
__asan_store2
__asan_load4
__asan_store4
__asan_load8
__asan_store8
__asan_load16
__asan_store16