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_uaf2
Proto:static noinline void __init kmalloc_uaf2(void)
Type:void
Parameter:Nothing
323 | size = 43 |
325 | pr_info("use-after-free after another kmalloc\n") |
326 | ptr1 = kmalloc(size, GFP_KERNEL) |
327 | If Not ptr1 Then |
328 | pr_err("Allocation failed\n") |
329 | Return |
333 | ptr2 = kmalloc(size, GFP_KERNEL) |
334 | If Not ptr2 Then |
335 | pr_err("Allocation failed\n") |
336 | Return |
339 | ptr1[40] = '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 |