llvm-project/compiler-rt/test
Reid Kleckner d092107b0e [asan/win] Add init hooks to .CRT$XLAB
Summary:
User applications may register hooks in the .CRT$XL* callback list,
which is called very early by the loader. This is very common in
Chromium:
https://cs.chromium.org/search/?q=CRT.XL&sq=package:chromium&type=cs

This has flown under the radar for a long time because the loader
appears to catch exceptions originating from these callbacks. It's a
real problem when you're debugging an asan application, though, since it
makes the program crash early.

The solution is to add our own callback to this list, and sort it very
early in the list like we do elsewhere. Also add a test with such an
instrumented callback, and test that it gets called with asan.

Reviewers: etienneb

Subscribers: llvm-commits, kubabrecka

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

llvm-svn: 286290
2016-11-08 20:45:45 +00:00
..
BlocksRuntime
asan [asan/win] Add init hooks to .CRT$XLAB 2016-11-08 20:45:45 +00:00
builtins [compiler-rt][tests] cpu_model_test.c test fails to compile if X86 is not clang's default target 2016-08-18 14:39:39 +00:00
cfi cfi: Fixes for check-cfi when configured as an external project. 2016-09-22 20:51:48 +00:00
dfsan [mips] XFAIL the new mips64el compiler-rt tests that fail on clang-cmake-mipsel. 2016-08-12 11:56:36 +00:00
esan [ESan][MIPS] Adds support for MIPS64 2016-10-06 09:58:11 +00:00
interception [Darwin] Exclude interception union tests on Darwin and Android 2016-08-04 04:46:39 +00:00
lsan [lsan] [aarch64] Fix printing of pointers in make check tests 2016-10-20 12:25:57 +00:00
msan Use -fsanitize-recover instead of -mllvm -msan-keep-going: tests. 2016-11-07 21:02:56 +00:00
profile [profile] Mark lprofCurFilename as COMPILER_RT_WEAK 2016-10-18 00:02:28 +00:00
safestack [asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR false positive with LTO (compiler-rt part) 2016-09-14 14:09:18 +00:00
sanitizer_common [sanitizers] Update sanitizers test to better match glibc internals 2016-10-05 07:13:42 +00:00
scudo [scudo] Lay the foundation for 32-bit support 2016-10-26 16:16:58 +00:00
tsan tsan: more precise handling of atomic stores 2016-11-08 05:34:50 +00:00
ubsan [ubsan] Fix vptr.cpp test to be more resilient. NFC. 2016-10-26 16:02:36 +00:00
xray [compiler-rt][XRay] Initial per-thread inmemory logging implementation 2016-08-26 06:39:33 +00:00
CMakeLists.txt [CMake] Adding compiler-rt-test-depends target 2016-09-01 18:26:51 +00:00
lit.common.cfg [ESan][MIPS] Adds support for MIPS64 2016-10-06 09:58:11 +00:00
lit.common.configured.in cfi: Fixes for check-cfi when configured as an external project. 2016-09-22 20:51:48 +00:00