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_memset

Proto:static noinline void __init kmalloc_uaf_memset(void)

Type:void

Parameter:Nothing

307  size = 33
309  pr_info("use-after-free in memset\n")
310  ptr = kmalloc(size, GFP_KERNEL)
311  If Not ptr Then
312  pr_err("Allocation failed\n")
313  Return
316  kfree(ptr)
317  memset(ptr, 0, size)
Caller
NameDescribe
kmalloc_tests_init