Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmalloc_pagealloc_invalid_free

Proto:static noinline void __init kmalloc_pagealloc_invalid_free(void)

Type:void

Parameter:Nothing

118  size = Maximum size for which we actually use a slab cache + 10
120  pr_info("kmalloc pagealloc allocation: invalid-free\n")
121  ptr = kmalloc(size, GFP_KERNEL)
122  If Not ptr Then
123  pr_err("Allocation failed\n")
124  Return
127  kfree(ptr + 1)
Caller
NameDescribe
kmalloc_tests_init