Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kfree_via_page

Proto:static noinline void __init kfree_via_page(void)

Type:void

Parameter:Nothing

348  size = 8
352  pr_info("invalid-free false positive (via page)\n")
353  ptr = kmalloc(size, GFP_KERNEL)
354  If Not ptr Then
355  pr_err("Allocation failed\n")
356  Return
359  page = virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(ptr)
360  offset = offset_in_page(ptr)
361  kfree(page_address(page) + offset)
Caller
NameDescribe
kmalloc_tests_init