[msan] Clean stack and TLS shadow on thread exit.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197156 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Add a check for recursive __msan_init.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197218 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Wrap indirect calls from sanitizer rtl when running under DR.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197226 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Disable call wrapping when building for Go.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197232 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add flag uar_noreserve to use noreserve mmap for fake stack. uar_noreserve=1 will save some memory but also negatively affect performance

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197233 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix strncat interceptor, add missing tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197244 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] replace the flag uar_stack_size_log with two flags min_uar_stack_size_log/max_uar_stack_size_log

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197370 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix the test so that it works even if stack size is unlimited by default

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197372 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix gethostbyname_r and similar interceptors.

*h_errno is written not on success, but on failure.
In fact, it seems like it can be written even when return value signals
success, so we just unpoison it in all cases.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197383 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Relax gethostbyname_r test condition.

Apparently, its return value depends on the glibc version.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197390 91177308-0d34-0410-b5e6-96231b3b80d8
Merge branch 'master' into powerpc-darwin8