Function report |
Source Code:lib\test_kasan.c |
Create Date:2022-07-28 06:29:17 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kmalloc_pagealloc_uaf
Proto:static noinline void __init kmalloc_pagealloc_uaf(void)
Type:void
Parameter:Nothing
| 104 | pr_info("kmalloc pagealloc allocation: use-after-free\n") |
| 105 | ptr = kmalloc(size, GFP_KERNEL) |
| 106 | If Not ptr Then |
| 107 | pr_err("Allocation failed\n") |
| 108 | Return |
| 112 | ptr[0] = 0 |
| 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 |