[hwasan] Add __hwasan_handle_longjmp.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 16 Aug 2018 20:46:41 +0000 (20:46 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 16 Aug 2018 20:46:41 +0000 (20:46 +0000)
commit8bb383f1fbb83588fe901a507e485254256886ed
treef83d5576d89c0cfadbbcb47e346e1ac6f0a30c67
parent89e833c6623394eceab109241722561daba7fd4c
[hwasan] Add __hwasan_handle_longjmp.

Summary:
A callback to annotate longjmp-like code.

Unlike __asan_handle_no_return, in hwasan we can not conservatively
"unpoison" the entire thread stack, because there is no such thing as
unpoisoned memory. Pointer and memory tags must always match.

Reviewers: vitalybuka, kcc

Subscribers: kubamracek, llvm-commits

Differential Revision: https://reviews.llvm.org/D50752

llvm-svn: 339935
compiler-rt/include/sanitizer/hwasan_interface.h
compiler-rt/lib/hwasan/hwasan.cc
compiler-rt/lib/hwasan/hwasan_interface_internal.h
compiler-rt/test/hwasan/TestCases/longjmp.cc [new file with mode: 0644]