Function report | 
Source Code:lib\test_kasan.c | 
Create Date:2022-07-28 06:29:20 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:kmalloc_uaf
Proto:static noinline void __init kmalloc_uaf(void)
Type:void
Parameter:Nothing
| 291 | size = 10 | 
| 293 | pr_info("use-after-free\n") | 
| 294 | ptr = kmalloc(size, GFP_KERNEL) | 
| 295 | If Not ptr Then | 
| 296 | pr_err("Allocation failed\n") | 
| 297 | Return | 
| 301 | *(ptr + 8) = 'x' | 
| Name | Describe | 
|---|---|
| kmalloc_tests_init | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |