1. [compiler-rt] libhwasan interceptor ABI intercept longjmp/setjmp (details)
Commit 67474c60d344a061d6c3affb70e7c8a13c15f830 by david.tellenbach
[compiler-rt] libhwasan interceptor ABI intercept longjmp/setjmp
Summary: The hwasan interceptor ABI doesn't have interceptors for
longjmp and setjmp. This patch introduces them.
We require the size of the jmp_buf on the platform to be at least as
large as the jmp_buf in our implementation. To enforce this we compile
hwasan_type_test.cpp that ensures a compile time failure if this is not
Tested on both GCC and clang using an AArch64 virtual machine.
Reviewers: eugenis, kcc, pcc, Sanatizers
Reviewed By: eugenis, Sanatizers
Tags: #sanatizers, #llvm
Differential Revision:
Patch By: Matthew Malcomson <>
The file was addedcompiler-rt/lib/hwasan/hwasan_setjmp.S
The file was addedcompiler-rt/lib/hwasan/hwasan_type_test.cpp
The file was modifiedcompiler-rt/lib/hwasan/hwasan.h
The file was addedcompiler-rt/test/hwasan/TestCases/longjmp-setjmp-interception.c
The file was modifiedcompiler-rt/lib/hwasan/CMakeLists.txt
The file was modifiedcompiler-rt/lib/hwasan/hwasan_interceptors.cpp