[ASan] More careful reports for globals that are ASCII strings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178458 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] Add register dumping support to SuspendedThreadsList.

An interface for obtaining register contexts from suspended threads. Tailored
for LSan use.

Patch by Sergey Matveev (earthdok@google.com)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178461 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] Added data() and capacity() getters to InternalVector.
Same interface as in STL. Needed for LSan.

Patch by Sergey Matveev (earthdok@google.com)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178463 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] Run the callback on a separate stack in StopTheWorld.

Currently the callback runs on the caller's stack. If this stack
contains values that have gone out of scope, and we are not super careful, those
values can propagate into global variables (the libc sigaction() in particular
has a side effect that can lead to this). This has caused false negatives in
leak checking code.

Changes: map a separate stack space for the tracer thread. Also, move some
globals into local scope (they had no business being global anyway).

Patch by Sergey Matveev (earthdok@google.com)


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

getpwnam, getpwuid, getpwnam_r, getpwuid_r, clock_getres, clock_gettime,
clock_settime, getitimer, setitimer, sigaction (MSan).



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178465 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Add the WTFAnnotateBenignRaceSized implementation and a test for
WTFAnnotateBenignRaceSized and AnnotateBenignRaceSized.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178534 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Fix StopTheWorld includes on Android. Patch by Sergey Matveev.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178625 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Kill the remainders of platform defines in favor of SANITIZER_ defines

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178627 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Kill the remainders of platform defines in favor of SANITIZER_ defines

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178629 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Be more careful with arch-specific defines in StopTheWorld code

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178630 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Fix OnPrint weak hook. Disable weak hooks for gotsan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178640 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] while doing fast unwinding make sure that the frame pointer is aligned; fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178747 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Unpoison siginfo_t and ucontext_t in signal handlers.

Add wrappers for all user signal handlers to unpoison the handler's arguments.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178754 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Use ucontext_t instead of "struct ucontext".

Fixes Mac build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178755 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Android lacks ucontext_t definition.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178756 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fill first 4K of malloc-ed memory with garbage, implement flags max_malloc_fill_size and malloc_fill_byte

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178757 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] nuke the old unused allocator code

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178758 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Make path to FileCheck configurable

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178760 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Use a common mutex to prevent mixing reports from different sanitizers. This fixes PR15516

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178853 91177308-0d34-0410-b5e6-96231b3b80d8
Remove InternalAlloc/InternalFree calls from StopTheWorld. Patch by Sergey Matveev.

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