Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memory_is_poisoned_n

Proto:static __always_inline bool memory_is_poisoned_n(unsigned long addr, size_t size)

Type:bool

Parameter:

TypeParameterName
unsigned longaddr
size_tsize
135  ret = memory_is_nonzero(kasan_mem_to_shadow((void * )addr), kasan_mem_to_shadow((void * )addr + size - 1) + 1)
138  If Value for the false possibility is greater at compile time(ret) Then
139  last_byte = addr + size - 1
140  last_shadow = kasan_mem_to_shadow((void * )last_byte)
142  If Value for the false possibility is greater at compile time(ret != (unsignedlong)last_shadow || ((long)(last_byte & KASAN_SHADOW_MASK) >= * last_shadow)) Then Return true
146  Return false
Caller
NameDescribe
memory_is_poisoned