Hardware shadow stack support for legacy guests
Abstract
Technologies for shadow stack support for legacy guests include a computing device having a processor with shadow stack support. During execution of a call instruction, the processor determines whether a legacy stack pointer is within bounds and generates a virtual machine exit if the legacy stack pointer is out-of-bounds. If not out-of-bounds, the processor pushes a return address onto the legacy stack and onto a shadow stack protected by a hypervisor. During execution of a return instruction, the processor determines whether top return addresses of the legacy stack and the shadow stack match, and generates a virtual machine exit if the return addresses do not match. If the return addresses match, the processor pops the return addresses off of the legacy stack and off of the shadow stack. The stack out-of-bounds and the stack mismatch virtual machine exits may be handled by the hypervisor. Other embodiments are described and claimed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 22 · Forward citations: 11.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for shadow stack support for legacy guests, the method comprising: executing, by a call module of a processor of a computing device, a call instruction in stack monitoring mode, wherein executing the call instruction comprises: determining, by the call module, whether a legacy stack pointer of the computing device is within a stack bounds of the computing device; generating, by the call module, a virtual machine exit to a stack out-of-bounds handler in response to determining the legacy stack pointer is not within the stack bounds; pushing, by the call module, a return address onto a
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (11 of 11 total)
References Cited — Backward Prior Art (22)
Non-Patent Literature (5)
- Chen et al., "Efficient Detection of the Return-Oriented Programming Malicious Code", Dec. 2010, Springer-Verlag Berlin Heidelberg, pp. 140-155; .
- Chen et al., "Efficient Detection of the Return-Oriented Programming Malicious Code", Dec. 2010, Springer-Verlag Berlin Heidelberg, pp. 140-155; <http://link.springer.com/chapter/10.1007%2F978-3-642-17714-9-11#page-1>.
- Davi et al., "ROPdefender: A Detection Tool to Defined Against Return-Oriented Programming Attachks", 2011 ACM, ASIACCS'11, Mar. 22-24, 2011, Hong Kong, China, pp. 1-12; .
- Davi et al., "ROPdefender: A Detection Tool to Defined Against Return-Oriented Programming Attachks", 2011 ACM, ASIACCS'11, Mar. 22-24, 2011, Hong Kong, China, pp. 1-12; <http://dl.acm.org/citation.cfm?id=1966920&CFID=573936520&CFTOKEN=23836272>.
- Hart et al., "Hardware Assisted ROP Detection Mode (HARD Mode)", Aug. 2013, Academy Center for Cyberspace Research, pp. 1-10; .