函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kasan\init.c Create Date:2022-07-27 17:25:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int __ref kasan_populate_early_shadow(const void *shadow_start, const void *shadow_end)

返回类型:int

参数:

类型参数名称
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  循环
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  如果IS_ALIGNED(addr, PGDIR_SIZE)且endaddr大于等于PGDIR_SIZE
267  p4d等于p4d_offset(pgd, addr)
270  pud等于pud_offset(p4d, addr)
273  pmd等于pmd_offset(pud, addr)
276  继续下一循环
282  如果slab_is_available()则
286  否则
291  zero_p4d_populate(pgd, addr, next)
292 pgd自加, addr等于next, addr不等于end循环
294  返回:0
调用者
名称描述
kasan_add_zero_shadow