« All posts

Clang: Hardware-Assisted AddressSanitizer Design Documentation

HWASAN is a hardware-assisted tool for memory safety. It provides design details for AArch64 and x86_64 architectures.

The hardware-assisted AddressSanitizer (HWASAN) is a tool similar to AddressSanitizer, designed to provide lower memory overhead and improved accuracy guarantees. It utilizes address tagging features in AArch64 and Intel x86_64 architectures to enhance memory safety. This design documentation outlines the algorithms, memory access instrumentation, and error reporting mechanisms of HWASAN.