Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmalloc_double_kzfree

Proto:static noinline void __init kmalloc_double_kzfree(void)

Type:void

Parameter:Nothing

740  size = 16
742  pr_info("double-free (kzfree)\n")
743  ptr = kmalloc(size, GFP_KERNEL)
744  If Not ptr Then
745  pr_err("Allocation failed\n")
746  Return
749  kzfree - like kfree but zero memory*@p: object to free memory of* The memory of the object @p points to is zeroed before freed.* If @p is %NULL, kzfree() does nothing.* Note: this function zeroes the whole allocated buffer which can be a good
750  kzfree - like kfree but zero memory*@p: object to free memory of* The memory of the object @p points to is zeroed before freed.* If @p is %NULL, kzfree() does nothing.* Note: this function zeroes the whole allocated buffer which can be a good
Caller
NameDescribe
kmalloc_tests_init