Hardware based return pointer encryption
Abstract
A processor, a method and a computer-readable storage medium for encrypting a return address are provided. The processor comprises hardware logic configured to encrypt an instruction pointer and push the encrypted instruction pointer onto a stack. The logic is further configured to retrieve the encrypted instruction pointer from the stack, decrypt the instruction pointer and redirect execution to the decrypted instruction pointer.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 3.
Claims (3 — 2 Independent, 1 Dependent)
- Claim 1Independent Claim
A processor comprising: hardware logic configured to: receive a machine code call instruction configured to cause the processor to call a subroutine by storing a start address of the subroutine into an instruction pointer and a return address onto a call stack; in response to receiving the machine code call instruction: encrypt a return address of the subroutine, the return address being the value of the instruction pointer prior to storing the start address, and store the encrypted return address in the call stack; retrieve the encrypted return address from the call stack; decrypt the encrypt
- Claim 2Depends on #1
The processor of claim 1 , wherein the logic uses a key stored in a register to perform the encryption and decryption.
- Claim 3Independent Claim
The processor
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗