Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kasan_remove_zero_shadow

Proto:void kasan_remove_zero_shadow(void *start, unsigned long size)

Type:void

Parameter:

TypeParameterName
void *start
unsigned longsize
457  addr = kasan_mem_to_shadow(start)
458  end = addr + (size >> KASAN_SHADOW_SCALE_SHIFT)
460  If WARN_ON((unsignedlong)start % (KASAN_SHADOW_SCALE_SIZE * PAGE_SIZE)) || WARN_ON(size % (KASAN_SHADOW_SCALE_SIZE * PAGE_SIZE)) Then Return
465  When addr < end cycle
468  next = When walking page tables, get the address of the next boundary,* or the end address of the range if that comes earlier. Although no* vma end wraps to 0, rounded up __boundary may wrap to 0 throughout.(addr, end)
470  pgd = a shortcut which implies the use of the kernel's pgd, instead* of a process's(addr)
471  If Not pgd_present( * pgd) Then Continue
474  If kasan_p4d_table( * pgd) Then
478  Continue
481  p4d = p4d_offset(pgd, addr)
482  kasan_remove_p4d_table(p4d, addr, next)
483  kasan_free_p4d(p4d_offset(pgd, 0), pgd)
Caller
NameDescribe
kasan_add_zero_shadow