函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kasan\generic.c Create Date:2022-07-27 17:27:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:memory_is_poisoned_n

函数原型:static __always_inline bool memory_is_poisoned_n(unsigned long addr, size_t size)

返回类型:bool

参数:

类型参数名称
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  如果此条件成立可能性小(为编译器优化)(ret)则
139  last_byte等于addrsize减1
140  last_shadow等于kasan_mem_to_shadow((void * )last_byte)
142  如果此条件成立可能性小(为编译器优化)(ret != (unsignedlong)last_shadow || ((long)(last_byte & KASAN_SHADOW_MASK) >= * last_shadow))则返回:true
146  返回:false
调用者
名称描述
memory_is_poisoned