Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_kasan.c Create Date:2022-07-28 06:29:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Note: test functions are marked noinline so that their names appear in* reports.

Proto:static noinline void __init kmalloc_oob_right(void)

Type:void

Parameter:Nothing

34  size = 123
36  pr_info("out-of-bounds to right\n")
37  ptr = kmalloc(size, GFP_KERNEL)
38  If Not ptr Then
39  pr_err("Allocation failed\n")
40  Return
43  ptr[size] = 'x'
44  kfree(ptr)
Caller
NameDescribe
kmalloc_tests_init