Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmalloc_uaf

Proto:static noinline void __init kmalloc_uaf(void)

Type:void

Parameter:Nothing

291  size = 10
293  pr_info("use-after-free\n")
294  ptr = kmalloc(size, GFP_KERNEL)
295  If Not ptr Then
296  pr_err("Allocation failed\n")
297  Return
300  kfree(ptr)
301  *(ptr + 8) = 'x'
Caller
NameDescribe
kmalloc_tests_init