[Tsan] Fix references to libc entities in tsan_interceptors.cc on FreeBSD
Differential Revision: http://reviews.llvm.org/D5663


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219395 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizers] Intercept dlopen() and dlclose() on FreeBSD
Differential Revision: http://reviews.llvm.org/D5664


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219396 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Fix the blacklist2.cc test to pass on FreeBSD
Differential Revision: http://reviews.llvm.org/D5665


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219397 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Fix the global_race tests to pass on FreeBSD
Differential Revision: http://reviews.llvm.org/D5668


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219398 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Fix the signal_errno.cc and signal_malloc.cc tests to pass on FreeBSD
Differential Revision: http://reviews.llvm.org/D5669


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219399 91177308-0d34-0410-b5e6-96231b3b80d8
XFAIL some more sanitiser ARMv7l tests

Some more tests failing on the ARMv7 buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219404 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Make the user_fopen.cc and user_malloc.cc tests Linux-specific
Differential Revision: http://reviews.llvm.org/D5670


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219478 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Fix comments in the user_fopen.cc and user_malloc.cc tests
Related revision: http://reviews.llvm.org/D5670


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219481 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Fix the getline_nohang.cc test to build on FreeBSD
Differential Revision: http://reviews.llvm.org/D5666


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219482 91177308-0d34-0410-b5e6-96231b3b80d8
[Tsan] Do not use INTERCEPT_FUNCTION_VER() on FreeBSD
Differential Revision: http://reviews.llvm.org/D5708


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219483 91177308-0d34-0410-b5e6-96231b3b80d8
Disabling main() check on UBSAN, since the noreturn check is already made

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219488 91177308-0d34-0410-b5e6-96231b3b80d8
[asan][mips] Adding support of asan for mipsel arch

cmake/config-ix.cmake: Enabled building of asan for mipsel arch
test/asan/CMakeLists.txt: Enabled testing of asan for mipsel

Patch by Kumar Sukhani

Differential Revision: http://reviews.llvm.org/D5615


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219496 91177308-0d34-0410-b5e6-96231b3b80d8
[UBSan] Fix UBSan testcase for float->int conversion after LLVM r219542.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219559 91177308-0d34-0410-b5e6-96231b3b80d8
[UBSan] Disable one run line of this test to allow the test as a whole
to pass in an opt build.

The test case in question does show UBSan catching the error, but it
doesn't then successfully set the exit code of the program. I'll let the
UBSan folks sort out why. It should reproduce trivially with an
optimized build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219563 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: better reporting for virtual-call-after-free
Previously we said that it's a data race, which is confusing
if it happens in the same thread.




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219600 91177308-0d34-0410-b5e6-96231b3b80d8
Fix minor typos in comments.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219632 91177308-0d34-0410-b5e6-96231b3b80d8
Sanitize upcasts and conversion to virtual base.

This change adds UBSan check to upcasts. Namely, when we
perform derived-to-base conversion, we:
1) check that the pointer-to-derived has suitable alignment
   and underlying storage, if this pointer is non-null.
2) if vptr-sanitizer is enabled, and we perform conversion to
   virtual base, we check that pointer-to-derived has a matching vptr.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219642 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: refactor atexit handling
The current handling (manual execution of atexit callbacks)
is overly complex and leads to constant problems due to mutual ordering of callbacks.
Instead simply wrap callbacks into our wrapper to establish
the necessary synchronization.
Fixes issue https://code.google.com/p/thread-sanitizer/issues/detail?id=80



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219675 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Add fast_unwind_on_check flag.

Allows to specify the unwinder to use for CHECK failures. Previous behaviour
was to use the "fatal" unwinder.
As compiler-rt is built without frame pointers, only the slow unwinder
really makes sense here, and it is the default.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219677 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: remove trailing whitespace



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