llvm-project/compiler-rt/lib
Peter Wu dbc4f7413c [ASAN] Add interceptor for __longjmp_chk
Summary:
glibc on Linux calls __longjmp_chk instead of longjmp (or _longjmp) when
_FORTIFY_SOURCE is defined. Ensure that an ASAN-instrumented program
intercepts this function when a system library calls it, otherwise the
stack might remain poisoned and result in CHECK failures and false
positives.

Fixes https://github.com/google/sanitizers/issues/721

Reviewed By: eugenis

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

llvm-svn: 302152
2017-05-04 14:03:57 +00:00
..
BlocksRuntime Move tests for BlocksRuntime and builtins to corresponding directories under test/ 2014-02-14 09:47:31 +00:00
asan [ASAN] Add interceptor for __longjmp_chk 2017-05-04 14:03:57 +00:00
builtins [compiler-rt][mips] Add support for quad precision builtins for mips64 2017-05-04 13:34:17 +00:00
cfi [cfi] Accept weak definition of __cfi_check. 2017-04-07 22:52:08 +00:00
dfsan [sanitizer-coverage] remove more unused code 2017-04-19 23:05:53 +00:00
esan [sanitizer] Move fread and fwrite interceptors to sanitizer_common 2017-03-30 07:25:33 +00:00
interception [interception] Check for export table's size before referring to its elements. 2017-01-30 18:23:37 +00:00
lsan [sanitizer] Intercept mcheck and mprobe on Linux 2017-05-03 07:09:10 +00:00
msan Revert r301904 causing tsan test failure in x86_64-linux-autoconf 2017-05-02 10:22:05 +00:00
profile [profile] Sync up InstrProfData.inc (NFC) 2017-04-15 00:10:33 +00:00
safestack [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
sanitizer_common [asan] print the 'unexpected format specifier in printf interceptor' warning just once (came up in https://github.com/google/oss-fuzz/pull/562). Not touching a similar scanf warning -- for some reason it does not fire for me. 2017-05-03 18:38:34 +00:00
scudo [scudo] Move thread local variables into their own files 2017-04-27 20:21:16 +00:00
stats Revert "[sancov] moving sancov rt to sancov/ directory" 2017-01-12 01:37:35 +00:00
tsan [tsan] Detect races on modifying accesses in Swift code 2017-05-03 16:51:01 +00:00
ubsan [ubsan] Fall back to the fast unwinder when print_stacktrace=1 2017-05-01 21:41:01 +00:00
xray [XRay][compiler-rt] Support patching/unpatching specific functions 2017-05-04 04:59:20 +00:00
CMakeLists.txt Revert "[sancov] moving sancov rt to sancov/ directory" 2017-01-12 01:37:35 +00:00