Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kasan_add_zero_shadow

Proto:int kasan_add_zero_shadow(void *start, unsigned long size)

Type:int

Parameter:

TypeParameterName
void *start
unsigned longsize
492  shadow_start = kasan_mem_to_shadow(start)
493  shadow_end = shadow_start + (size >> KASAN_SHADOW_SCALE_SHIFT)
495  If WARN_ON((unsignedlong)start % (KASAN_SHADOW_SCALE_SIZE * PAGE_SIZE)) || WARN_ON(size % (KASAN_SHADOW_SCALE_SIZE * PAGE_SIZE)) Then Return -EINVAL
500  ret = kasan_populate_early_shadow - populate shadow memory region with* kasan_early_shadow_page*@shadow_start - start of the memory range to populate*@shadow_end - end of the memory range to populate
501  If ret Then kasan_remove_zero_shadow(shadow_start, size >> KASAN_SHADOW_SCALE_SHIFT)
504  Return ret