Function report |
Source Code:kernel\stackleak.c |
Create Date:2022-07-28 13:51:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:stackleak_erase
Proto:asmlinkage void notrace stackleak_erase(void)
Type:void
Parameter:Nothing
| 54 | kstack_ptr = lowest_stack |
| 56 | poison_count = 0 |
| 57 | depth = STACKLEAK_SEARCH_DEPTH / sizeof(unsignedlong) |
| 59 | If skip_erasing() Then Return |
| 63 | If Value for the false possibility is greater at compile time(kstack_ptr - boundary >= THREAD_SIZE) Then kstack_ptr = boundary |
| 67 | When kstack_ptr > boundary && poison_count <= depth cycle |
| 68 | If kstack_ptr == Check that the poison value points to the unused hole in the* virtual memory map for your platform. Then poison_count++ |
| 70 | Else poison_count = 0 |
| 73 | kstack_ptr -= sizeof(unsignedlong) |
| 80 | If kstack_ptr == boundary Then kstack_ptr += sizeof(unsignedlong) |
| 92 | If on_thread_stack() Then boundary = asm(_ASM_SP);wss |
| 94 | Else boundary = current_top_of_stack() |
| 97 | When kstack_ptr < boundary cycle |
| 98 | kstack_ptr = Check that the poison value points to the unused hole in the* virtual memory map for your platform. |
| 99 | kstack_ptr += sizeof(unsignedlong) |
| 103 | lowest_stack = current_top_of_stack() - THREAD_SIZE / 64 |
| 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 |