2012 · 30 citations · 30 references
ComputingComputer EngineeringComputer ScienceComputer SecurityHardware SecurityHardware-software Co-designMemory ManagementMemory Protection HardwareMemory SafetyMemory Safety VulnerabilitiesMicroarchitectural SecurityRegister AllocationBounds CheckingExploitability Of Memory Safety BugsHardware SafetyManual Memory ManagementManual Memory Management ErrorsMemory Protection MechanismsRegister RenamingSecure Memory Management
Languages such as C and C++ use unsafe manual memory management, allowing simple bugs (i.e., accesses to an object after deallocation) to become the root cause of exploitable security vulnerabilities. This paper proposes Watchdog, a hardware-based approach for ensuring safe and secure manual memory management. Inspired by prior software-only proposals, Watchdog generates a unique identifier for each memory allocation, associates these identifiers with pointers, and checks to ensure that the identifier is still valid on every memory access. This use of identifiers and checks enables Watchdog to detect errors even in the presence of reallocations. Watchdog stores these pointer identifiers in a disjoint shadow space to provide comprehensive protection and ensure compatibility with existing code. To streamline the implementation and reduce runtime overhead: Watchdog (1) uses micro-ops to access metadata and perform checks, (2) eliminates metadata copies among registers via modified register renaming, and (3) uses a dedicated metadata cache to reduce checking overhead. Furthermore, this paper extends Watchdog's mechanisms to detect bounds errors, thereby providing full hardware-enforced memory safety at low overheads.
30
Nicholas Nethercote, Julian Seward · 2007 · 2.3K citations
Santosh Nagarakatte, Milo M. K. Martin, Steve Zdancewic · 2009 · 529 citations
Non-control-data attacks are realistic threats
Shuo Chen, Jun Xu, Emre C. Sezer et al. · USENIX Security Symposium · 2005 · 475 citations