Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmalloc_oob_memset_16

Proto:static noinline void __init kmalloc_oob_memset_16(void)

Type:void

Parameter:Nothing

259  size = 16
261  pr_info("out-of-bounds in memset16\n")
262  ptr = kmalloc(size, GFP_KERNEL)
263  If Not ptr Then
264  pr_err("Allocation failed\n")
265  Return
268  memset(ptr + 1, 0, 16)
269  kfree(ptr)
Caller
NameDescribe
kmalloc_tests_init