Function report |
Source Code:kernel\debug\kdb\kdb_support.c |
Create Date:2022-07-28 11:43:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:debug_kfree
Proto:void debug_kfree(void *p)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
void * | p |
807 | If Not p Then Return |
809 | If p < debug_alloc_pool || p >= debug_alloc_pool + size of debug_alloc_pool_aligned Then |
814 | If Not get_dap_lock() Then |
816 | Return |
818 | h = p - dah_overhead |
819 | memset(p, r use-after-free poisoning , size - 1) |
820 | *( p + size - 1) = d-byte of poisoning |
821 | caller = NULL |
823 | h_offset = h - debug_alloc_pool |
827 | Else |
830 | prev = debug_alloc_pool + dah_first |
832 | When 1 cycle |
833 | If Not ffset of next header from start of pool || ffset of next header from start of pool > h_offset Then Break |
838 | prev_offset = prev - debug_alloc_pool |
839 | If prev_offset + dah_overhead + size == h_offset Then |
840 | size += dah_overhead + size |
841 | memset(h, r use-after-free poisoning , dah_overhead - 1) |
842 | *( h + dah_overhead - 1) = d-byte of poisoning |
844 | h_offset = prev_offset |
845 | Else |
850 | If h_offset + dah_overhead + size == ffset of next header from start of pool Then |
854 | size += dah_overhead + size |
856 | memset(next, r use-after-free poisoning , dah_overhead - 1) |
857 | *( next + dah_overhead - 1) = d-byte of poisoning |
Name | Describe |
---|---|
kdbnearsym | kdbnearsym - Return the name of the symbol with the nearest address* less than 'addr' |
kdbnearsym_cleanup |
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 |