Arm Porting LLVM's Hardware-Assisted Address Sanitizer To GCC

Written by Michael Larabel in Arm on 6 November 2019 at 07:21 AM EST. 3 Comments
ARM
The latest of LLVM's "sanitizers" being ported for the GCC compiler stack is the hardware-assisted address sanitizer (HWASAN).

Arm has been working on this port of the LLVM HWASAN sanitizer to GCC, similar to GCC's other ports of sanitizers. With the work being done by Arm, the HWASAN code is only being wired up for AArch64 (64-bit ARM) but at least lays the groundwork for getting it working on other architectures moving forward -- pending capable hardware assistance.

The Hardware-assisted AddressSanitizer is an optimized version of the conventional AddressSanitizer that relies upon hardware support. HWASAN/ASAN is able to find buffer-overflows and use-after-free bugs within code. More details on the upstream HWASAN at the LLVM documentation.

The initial GCC patches of the HWASAN port can be found via the GCC-patches list.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week