函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kmalloc_oob_krealloc_less

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

返回类型:void

参数:

172  size1等于17
173  size2等于15
175  打印信息("out-of-bounds after krealloc less\n")
176  ptr1等于kmalloc(size1, GFP_KERNEL)
177  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
178  如果非ptr1或非ptr2
179  打印错误信息("Allocation failed\n")
180  kfree(ptr1)
181  返回
183  ptr2[size2]等于'x'
184  kfree(ptr2)
调用者
名称描述
kmalloc_tests_init