[asan] try to harden __tls_get_addr interceptor against signals (no good test still); update the comment in a test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206367 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add __asan_load1/__asan_store1/... callbacks to asan-rt; together with -mllvm -asan-instrumentation-with-call-threshold=N this will be a workaround for PR17409

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206387 91177308-0d34-0410-b5e6-96231b3b80d8
Move pthread_cond_* interceptors from sanitizer_common with all the ugly hacks to TSan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206423 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix a bug in outlined asan checks and in the corresponding test (ouch)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206470 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Change AddressSanitizer.LoadStoreCallbacks to use asan_malloc and asan_free.
Interceptors don't really work on OSX in asan_noinst_test.cc (this is more or less intentional),
so one shouldn't call intercepted functions in this test -- added a comment about this.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206477 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add benchmark that allows to investigate shadow memory consumption




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206578 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Add new MSan callbacks for instrumentation-with-calls mode.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206584 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Missing declarations for the new interface functions.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206586 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Run msan_test in the new with-calls mode.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206587 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Add missing quotes.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206589 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Reenable tests that should pass since PR19207 is fixed.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206593 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] implement __asan_loadN/__asan_storeN for out-lined asan checks

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206733 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add one more mode to run asan tests with '-with-calls', i.e. using  -mllvm -asan-instrumentation-with-call-threshold=0. This is very unfortunate since it effectively doubles the number of gunit asan tests that need to be built and run, but as long as we need out-lined calls (PR17409) I see no other way to test this workaround

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206742 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add __asan_memset and friends

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206748 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add a run-time flag detect_container_overflow=true/false

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206753 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: deflake test
ocasionally it fails with a slightly different report:

WARNING: ThreadSanitizer: signal handler spoils errno (pid=3674)
    #0 MyHandler(int, siginfo*, void*)
    ...
    #4 __tsan_free_hook
    #5 main signal_errno.cc:40



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206754 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Intercept tsearch.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206755 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] enable check_printf by default for asan and tsan. We've been using this flag for a while and it seems to be stable enough for the rest of the world.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206872 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fixed the expectation for Darwin memset test.
Added a comment about keeping the Linux/Darwin test versions in sync.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206881 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] enable LeakSanitizer (LSan) by default in asan. This only affects Linux x86_64. LSan has been used in various projects for more than half a year and we now consider it quite stable to be on by default.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206896 91177308-0d34-0410-b5e6-96231b3b80d8