函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Note: test functions are marked noinline so that their names appear in* reports.

函数原型:static noinline void __init kmalloc_oob_right(void)

返回类型:void

参数:

34  size等于123
36  打印信息("out-of-bounds to right\n")
37  ptr等于kmalloc(size, GFP_KERNEL)
38  如果非ptr
39  打印错误信息("Allocation failed\n")
40  返回
43  ptr[size]等于'x'
44  kfree(ptr)
调用者
名称描述
kmalloc_tests_init