函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_kasan.c Create Date:2022-07-27 07:26:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kmalloc_oob_krealloc_more

函数原型:static noinline void __init kmalloc_oob_krealloc_more(void)

返回类型:void

参数:

152  size1等于17
153  size2等于19
155  打印信息("out-of-bounds after krealloc more\n")
156  ptr1等于kmalloc(size1, GFP_KERNEL)
157  ptr2等于krealloc - reallocate memory. The contents will remain unchanged.*@p: object to reallocate memory for.*@new_size: how many bytes of memory are required.*@flags: the type of memory to allocate.* The contents of the object pointed to are preserved up to the
158  如果非ptr1或非ptr2
159  打印错误信息("Allocation failed\n")
160  kfree(ptr1)
161  kfree(ptr2)
162  返回
165  ptr2[size2]等于'x'
166  kfree(ptr2)
调用者
名称描述
kmalloc_tests_init