Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kasan_unpoison_shadow

Proto:void kasan_unpoison_shadow(const void *address, size_t size)

Type:void

Parameter:

TypeParameterName
const void *address
size_tsize
154  tag = get_tag(address)
161  address = reset_tag(address)
163  Poisons the shadow memory for 'size' bytes starting from 'addr'.* Memory addresses should be aligned to KASAN_SHADOW_SCALE_SIZE.
165  If size & KASAN_SHADOW_MASK Then
166  shadow = kasan_mem_to_shadow(address + size)
168  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_KASAN_SW_TAGS) Then shadow = tag
170  Else shadow = size & KASAN_SHADOW_MASK
Caller
NameDescribe
__kasan_unpoison_stack
kasan_unpoison_task_stack_belowUnpoison the stack for the current task beyond a watermark sp value.
kasan_unpoison_stack_above_sp_toClear all poison for the region between the current SP and a provided* watermark value, as is sometimes required prior to hand-crafted asm function* returns in the middle of functions.
kasan_alloc_pages
kasan_unpoison_object_data
__kasan_kmalloc
kasan_kmalloc_large
register_global
__asan_alloca_poisonEmitted by compiler to poison alloca()ed objects.
__asan_allocas_unpoisonEmitted by compiler to unpoison alloca()ed areas when the stack unwinds.
kasan_unpoison_slab