Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int __ref kasan_populate_early_shadow(const void *shadow_start, const void *shadow_end)

Type:int

Parameter:

TypeParameterName
const void *shadow_start
const void *shadow_end
233  addr = shadow_start
234  end = shadow_end
235  pgd = a shortcut which implies the use of the kernel's pgd, instead* of a process's(addr)
238  Do
239  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)
241  If IS_ALIGNED(addr, PGDIR_SIZE) && end - addr >= PGDIR_SIZE Then
267  p4d = p4d_offset(pgd, addr)
270  pud = pud_offset(p4d, addr)
273  pmd = pmd_offset(pud, addr)
276  Continue
282  If slab_is_available() Then
286  Else
291  zero_p4d_populate(pgd, addr, next)
292  When pgd++, addr = next , addr != end cycle
294  Return 0
Caller
NameDescribe
kasan_add_zero_shadow