[asan] implement callbacks for unaligned loads/stores

Reviewers: samsonov

Reviewed By: samsonov

CC: samsonov, llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D652

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179175 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Do not check the shadow of NULL argument in the time() interceptor.
Add a test for time().


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179177 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add heavy_uar_test (disabled); fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179271 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] move fake stack into a separate .h file; actually disable a failing test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179273 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Symbolize correct address when printint error summary

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179274 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix use-after-return functionality (PR15672) and enable the corresponding test. We still don't guarantee anything with regard to use-after-return checking

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179278 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] test source-based init-order blacklisting added in r179280

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179281 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] make heavy_uar_test a bit more heavy and fix he fake stack to pass this test

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

Pre- and post- hooks for linux syscalls. Not wired into anything, but exposed
through public interface.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179288 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] improve the UAR reporting (try harder to find the correct frame), try to make the test more stable

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179292 91177308-0d34-0410-b5e6-96231b3b80d8
Explicitly list all sanitizer headers in CMake build rules. Make sure sanitizer lit_tests depend on fresh headers.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179293 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] make heavy_uar_test even heavier

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179306 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] inline flags(), up to 1% perf gain on malloc-intensive code

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179307 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] remove -fPIE -pie from TSan lit tests to check that -fsanitize=thread implies them now

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179365 91177308-0d34-0410-b5e6-96231b3b80d8
[MSan] don't build tests with -fPIE/-pie, as these flags are implied by -fsanitize=memory now

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179366 91177308-0d34-0410-b5e6-96231b3b80d8
[MSan] Demangle function name in description of stack origin

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179368 91177308-0d34-0410-b5e6-96231b3b80d8
Finally drop the 'static' from INLINE and ALWAYS_INLINE

The ALWAYS_INLINE doesn't have static on POSIX anyways since r178341; the INLINE is only used in .h files, so shouldn't have been 'static' in the first place

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

This time it's the full list scavenged from syscalls.h
Fixed return value type.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179378 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Add syscall handlers to ASan and TSan runtimes.

ASan checks addressability of syscall arguments. TSan does nothing for now.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179380 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Really disable replacement new and delete.


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