Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmalloc_pagealloc_oob_right

Proto:static noinline void __init kmalloc_pagealloc_oob_right(void)

Type:void

Parameter:Nothing

83  size = Maximum size for which we actually use a slab cache + 10
88  pr_info("kmalloc pagealloc allocation: out-of-bounds to right\n")
89  ptr = kmalloc(size, GFP_KERNEL)
90  If Not ptr Then
91  pr_err("Allocation failed\n")
92  Return
95  ptr[size] = 0
96  kfree(ptr)
Caller
NameDescribe
kmalloc_tests_init