Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kasan_poison_kfree

Proto:void kasan_poison_kfree(void *ptr, unsigned long ip)

Type:void

Parameter:

TypeParameterName
void *ptr
unsigned longip
576  page = virt_to_head_page(ptr)
578  If Value for the false possibility is greater at compile time(!PageSlab(page)) Then
579  If ptr != page_address(page) Then
581  Return
583  Poisons the shadow memory for 'size' bytes starting from 'addr'.* Memory addresses should be aligned to KASAN_SHADOW_SCALE_SIZE.
584  Else
585  __kasan_slab_free( not slob , ptr, ip, false)