A task stack overflow detection algorithm for sparc platform
A technology of overflow detection and detection algorithm, applied in the direction of platform integrity maintenance, machine execution devices, etc., can solve problems such as misjudgment, error, and poor algorithm performance, and achieve high efficiency, accurate algorithm, and improved reliability and security. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0016] Such as figure 1 As shown, a SPARC platform task stack overflow detection algorithm, the detection algorithm is to maintain a separate variable current_stack_max for each task, record the maximum usage of the current stack, the initial value is 0; the task stack is initialized to 0; A margin of the size of an empty function stack frame is reserved at the top of the task stack. If the stack usage exceeds this margin, it is regarded as overflow.
[0017] In this embodiment, the algorithm steps are as follows:
[0018] 1) First, compare current_stack_max with the stack top TCB_SP of the current function stack frame saved in the task control block, and obtain min(current_stack_max, TCB_SP).
[0019] 2) Starting from stack_top, compare the contents of the [stack_top, min(current_stack_max, TCB_SP)] interval segment memory unit in sequence, and stop comparing when encountering a non-zero memory unit, and the pointer order_search points to this unit.
[0020] 3) Compare stac...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com