Secure memory controller
Abstract
Methods and apparatus for a secure memory controller. The secure memory controller includes circuitry and logic that is programmed to prevent malicious code from overwrite protected regions of system memory. The memory controller observes memory access patterns and trains itself to identify thread stacks and addresses relating to the thread stacks including stack-frame pointers and return addresses. In one aspect, the memory controller prevents a return address from being overwritten until a proper return from a function call is detected. The memory controller is also configured to prevent malicious code from overwriting page table entries (PTEs) in page tables. Pages containing PTEs are identified, and access is prevented to the PTEs from user-mode code. The PTEs are also scanned to detect corrupted PTEs resulting from bit manipulation by malicious code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 48 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method performed by a memory controller implemented as part of a coherent memory architecture employing multiple levels of caches, comprising: controlling access to system memory, the accesses including memory writes and memory reads; monitoring patterns of accesses to the system memory, including monitoring bursts of writes to the system memory, the bursts of writes corresponding to function calls from an execution thread written to sequential address; detecting that a new stack frame corresponding to a called function is added to a stack for the execution thread, the new stack frame beginn
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)
References Cited — Backward Prior Art (48)
Non-Patent Literature (5)
- A processor architecture defense against buffer overflow attacks; McGregor et al; International Conference on Information Technology: Research and Education; Aug. 11-13, 2003; pp. 243-250 (8 pages) (Year: 2003).
- Algorithms in Java, Third Edition; Sedgewick, Robert; ISBN 0201361205; 2003; pp. 150-151 (2 pages)n.
- Classification of Buffer Overflow Vulnerability Monitors; Shahriar et al; ARES '10 International Conference on Availability, Reliability, and Security; Feb. 15-18, 2010; pp. 519-524 (6 pages) (Year: 2010).
- Dynamic code instrumentation to detect and recover from return address corruption; Gupta et al; Proceedings of the 2006 international workshop on Dynamic systems analysis; May 23, 2006; pp. 65-72 (8 pages) (Year: 2006).
- Preventing Overflow Attacks by Memory Randomization; Iyer et al; IEEE 21st International Symposium on Software Reliability Engineering; Nov. 1-4, 2010; pp. 339-347 (9 pages) (Year: 2010).