Data processing system with safe call and return
Abstract
Embodiments of a system and method are disclosed that can include a memory unit, and a memory management unit coupled to the memory unit. The memory management unit can include address mapping circuitry and access control circuitry operable to: provide address mappings for at least a frame stack and a link stack in the memory unit for programs being executed by the processing unit, and provide an access permission indicator applicable to any segment of the memory unit. A processing unit can save context information for a program to the frame stack, and execute a savelink instruction subsequent to the execution of a branch and link instruction. If the access permission indicator is set, the savelink instruction saves to the link stack a return address provided by the branch and link instruction.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 31 · Forward citations: 2.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method comprising: in a system including a register file: allocating a link stack memory segment for storing a link stack; executing a branch and link instruction in which a program counter (PC) value is stored to the register file; executing a savelink instruction in which a link stack pointer value to the link stack memory segment is incremented; and if page attributes corresponding to the link stack memory segment having a memory location pointed to by the incremented link stack pointer has a stack attribute set, storing the PC value from the register file in the link stack memory segment
- Claim 2Depends on #1
The method of claim 1 further comprising: if page attributes corresponding to the link stack memory segment pointed to by the incremented link stack pointer has the stack attribute cleared, generating a link stack access ex
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 9,904,485 B2 | Secure memory controller | 2018 | 2 |
| US 9,703,603 B1 | System and method for executing accelerator call | 2017 | 12 |
References Cited — Backward Prior Art (31)
Non-Patent Literature (5)
- "Buffer Overflow Protection"; Wilipedia; Downoaded Nov. 8, 2011; 6 Pgs.; http://en.wikipedia.org/wiki/Buffer-overflow-protection.
- Avanzato; "Bypassing Stackguard and Stackshield"; Phrack Magazine; May 1, 2000; pp. 1-8; vol. Oxa, Issue Ox38; Bulba and Kil3R (lam3rz@hert.org).
- Baratloo et al.; "Transparent Run-Time-Defense Against Stack Smashing Attacks"; Proceedings of 2000 USENIX Annual Technical Conference; Jun. 12-18, 2000; 13 Pgs.; The USENIX Association.
- Cowan et al.; "Protecting Systems from Stack Smashing Attacks with StackGuard"; 1999; 11 Pgs.; Department of Computer Science and Engineering, Oregon Graduate Institute of Science and Technology.
- Dildog; "The Tao of Windows Buffer Overflow"; 15 Pgs.; www.cultdeadcow.com.