Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:stackleak_erase

Proto:asmlinkage void notrace stackleak_erase(void)

Type:void

Parameter:Nothing

54  kstack_ptr = lowest_stack
55  boundary = Return the address of the last usable long on the stack.* When the stack grows down, this is just above the thread* info struct. Going any lower will corrupt the threadinfo.* When the stack grows up, this is the highest address.
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