函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_shadow_bug_type

函数原型:static const char *get_shadow_bug_type(struct kasan_access_info *info)

返回类型:char

参数:

类型参数名称
struct kasan_access_info *info
48  bug_type等于"unknown-crash"
51  shadow_addr等于kasan_mem_to_shadow(first_bad_addr)
57  如果shadow_addr大于0且shadow_addr小于等于KASAN_SHADOW_SCALE_SIZE减1则shadow_addr自加
61  :shadow_addr == 0...KASAN_SHADOW_SCALE_SIZE - 1
66  bug_type等于"out-of-bounds"
67  退出
68  :shadow_addr恒等于KASAN_PAGE_REDZONE
69  :shadow_addr恒等于KASAN_KMALLOC_REDZONE
70  bug_type等于"slab-out-of-bounds"
71  退出
72  :shadow_addr恒等于dzone for global variable
73  bug_type等于"global-out-of-bounds"
74  退出
75  :shadow_addr恒等于Stack redzone shadow values* (Those are compiler's ABI, don't change them)
76  :shadow_addr恒等于KASAN_STACK_MID
77  :shadow_addr恒等于KASAN_STACK_RIGHT
78  :shadow_addr恒等于KASAN_STACK_PARTIAL
79  bug_type等于"stack-out-of-bounds"
80  退出
81  :shadow_addr恒等于KASAN_FREE_PAGE
82  :shadow_addr恒等于KASAN_KMALLOC_FREE
83  bug_type等于"use-after-free"
84  退出
85  :shadow_addr恒等于alloca redzone shadow values
86  :shadow_addr恒等于KASAN_ALLOCA_RIGHT
87  bug_type等于"alloca-out-of-bounds"
88  退出
89  :shadow_addr恒等于unallocated space in vmapped page
90  bug_type等于"vmalloc-out-of-bounds"
91  退出
94  返回:bug_type
调用者
名称描述
get_bug_type