Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kasan_memcmp

Proto:static noinline void __init kasan_memcmp(void)

Type:void

Parameter:Nothing

614  size = 24
617  pr_info("out-of-bounds in memcmp\n")
618  ptr = kmalloc(size, GFP_KERNEL | __GFP_ZERO)
619  If Not ptr Then Return
622  memset(arr, 0, size of arr )
623  memcmp(ptr, arr, size + 1)
624  kfree(ptr)
Caller
NameDescribe
kmalloc_tests_init