函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kasan_remove_zero_shadow

函数原型:void kasan_remove_zero_shadow(void *start, unsigned long size)

返回类型:void

参数:

类型参数名称
void *start
unsigned longsize
457  addr等于kasan_mem_to_shadow(start)
458  end等于addrsize右移KASAN_SHADOW_SCALE_SHIFT位的值
460  如果WARN_ON((unsignedlong)start % (KASAN_SHADOW_SCALE_SIZE * PAGE_SIZE))或WARN_ON(size % (KASAN_SHADOW_SCALE_SIZE * PAGE_SIZE))则返回
465 addr小于end循环
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  如果非pgd_present( * pgd)则继续下一循环
474  如果kasan_p4d_table( * pgd)则
478  继续下一循环
481  p4d等于p4d_offset(pgd, addr)
482  kasan_remove_p4d_table(p4d, addr, next)
483  kasan_free_p4d(p4d_offset(pgd, 0), pgd)
调用者
名称描述
kasan_add_zero_shadow