Title :
Watchdog: Hardware for safe and secure manual memory management and full memory safety
Author :
Nagarakatte, Santosh ; Martin, Milo M K ; Zdancewic, Steve
Abstract :
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.
Keywords :
C++ language; meta data; security of data; storage management; C++; Watchdog; checking overhead; comprehensive protection; dedicated metadata cache; disjoint shadow space; exploitable security vulnerability; full memory safety; hardware-enforced memory safety; memory access; memory allocation; register renaming; runtime overhead; secure manual memory management; Hardware; Manuals; Memory management; Registers; Resource management; Runtime; Software;
Conference_Titel :
Computer Architecture (ISCA), 2012 39th Annual International Symposium on
Conference_Location :
Portland, OR
Print_ISBN :
978-1-4673-0475-7
Electronic_ISBN :
1063-6897
DOI :
10.1109/ISCA.2012.6237017