Evgeniy Stepanov
4b42df03de
[asan] XFAIL:android several tests.
...
llvm-svn: 209734
2014-05-28 13:07:39 +00:00
Timur Iskhodzhanov
7f29181323
[ASan tests] Exclude some tests from Windows runs
...
Some features are not supported yet and some are not planned to be fixed soon
llvm-svn: 209733
2014-05-28 13:06:14 +00:00
Evgeniy Stepanov
0651b561a6
[asan] Fix android test setup.
...
llvm-svn: 209724
2014-05-28 09:58:58 +00:00
Timur Iskhodzhanov
a09b70579a
[ASan tests] Move one more test to POSIX-only directory
...
llvm-svn: 209722
2014-05-28 09:38:51 +00:00
Timur Iskhodzhanov
82ee0433da
[ASan/Win] Use clang rather than clang-cl by default for lit tests. Make Windows-only tests explicitly use clang-cl.
...
Reviewed at http://reviews.llvm.org/D3893
llvm-svn: 209719
2014-05-28 08:38:13 +00:00
Evgeniy Stepanov
d74bdccafe
[asan] Add a dll thunk for __sanitizer_cov_module_init.
...
llvm-svn: 209718
2014-05-28 08:34:53 +00:00
Evgeniy Stepanov
a00ff194b7
[asan] Add a few stubs to fix windows build.
...
llvm-svn: 209717
2014-05-28 08:26:24 +00:00
Greg Fitzgerald
329912f54c
[asan] use relative line numbers in tests
...
llvm-svn: 209699
2014-05-27 23:13:52 +00:00
Evgeniy Stepanov
de9467593a
[tsan] Fix tsango build.
...
llvm-svn: 209658
2014-05-27 14:18:43 +00:00
Evgeniy Stepanov
360c911872
[asan] Disable dlopen interceptor on Android.
...
It can not work, as libdl is always first in the lookup order,
even ahead of LD_PRELOAD-ed libraries.
llvm-svn: 209657
2014-05-27 14:14:03 +00:00
Evgeniy Stepanov
567e516015
[asancov] Write coverage directly to a memory-mapped file.
...
This way does not require a __sanitizer_cov_dump() call. That's
important on Android, where apps can be killed at arbitrary time.
We write raw PCs to disk instead of module offsets; we also write
memory layout to a separate file. This increases dump size by the
factor of 2 on 64-bit systems.
llvm-svn: 209653
2014-05-27 12:37:52 +00:00
Greg Fitzgerald
7b15cf8884
On AArch64, use clone() instead of fork()
...
Patch by Gideon Billings.
Differential Revision: http://reviews.llvm.org/D3903
llvm-svn: 209641
2014-05-26 23:44:55 +00:00
Timur Iskhodzhanov
d67df369cf
[ASan tests] Use ASAN_OPTIONS in a portable way
...
llvm-svn: 209629
2014-05-26 13:44:57 +00:00
Sergey Matveev
a531058d2b
[MSan] Implement __sanitizer_print_stack_trace().
...
llvm-svn: 209625
2014-05-26 13:08:08 +00:00
Timur Iskhodzhanov
9011eb81cf
[ASan/Win tests] Remove the extra 'cat' in front of FileCheck now that it's clear we should use GnuWin32 rather than Cygwin on the PATH on Windows (see PR19744)
...
llvm-svn: 209622
2014-05-26 11:54:20 +00:00
Timur Iskhodzhanov
5873419af7
[ASan/Win tests] Use the env keyword in the SUAR tests to work with gnuwin/lit correctly
...
llvm-svn: 209620
2014-05-26 11:25:32 +00:00
Sergey Matveev
2be4a28297
[sanitizer] Make stack traces from dlclose()'d modules more meaningful.
...
Previously, they silently omitted PCs belonging to unknown modules. Now we print
(<unknown module>) instead.
llvm-svn: 209522
2014-05-23 16:04:41 +00:00
Kostya Serebryany
ef769fac90
[ubsan] temporary disable testing with -m32 as there are bots that don't support it
...
llvm-svn: 209517
2014-05-23 15:02:06 +00:00
Kostya Serebryany
a72efdff9e
[ubsan] handle long double in 32-bit mode; part of the patch by Marek Polacek
...
llvm-svn: 209516
2014-05-23 14:45:13 +00:00
Kostya Serebryany
e1e9a4e2ec
[asan] fix a test following r209508
...
llvm-svn: 209509
2014-05-23 11:52:38 +00:00
Alexey Samsonov
958a59b777
[TSan] ifdef out certain functions if 128-bit ints are not supported.
...
llvm-svn: 209476
2014-05-22 22:02:38 +00:00
Alexey Samsonov
00997e29e5
Unify the name of compiler-rt builtins library on Linux.
...
Call it "libclang_rt.builtins-<arch>.a" to be consistent
with sanitizers/profile libraries naming. Modify Makefile
and CMake build systems and Clang driver accordingly.
Fixes PR19822.
llvm-svn: 209473
2014-05-22 21:12:43 +00:00
Timur Iskhodzhanov
d6ac15dd5f
Quick-fix a copy-and-paste mistake in one of the ASan test
...
llvm-svn: 209448
2014-05-22 15:14:05 +00:00
Kostya Serebryany
e31d5b6a2c
[asan] relax the test for long double
...
llvm-svn: 209445
2014-05-22 14:50:14 +00:00
Timur Iskhodzhanov
b2eb3131f4
[ASan/Win] Make sure the list of wrappers exported by the main module and imported by the DLL thunk always matches
...
llvm-svn: 209444
2014-05-22 14:49:56 +00:00
Timur Iskhodzhanov
8ff177ede3
[ASan/Win] Thread more library functions from the DLL thunk to the main module
...
llvm-svn: 209441
2014-05-22 13:57:22 +00:00
Timur Iskhodzhanov
498e56adb6
[ASan/Win] Add more tests for operator new[]
...
llvm-svn: 209439
2014-05-22 13:28:27 +00:00
Timur Iskhodzhanov
0c7c78f1d1
[ASan/Win] Use the new function interception approach to handle function wrappers too; wrap strlen() in DLLs
...
Reviewed at http://reviews.llvm.org/D3871
llvm-svn: 209427
2014-05-22 12:03:40 +00:00
Timur Iskhodzhanov
94ffc5bc12
[ASan/Win] Don't use INTERCEPTOR_ATTRIBUTE for operator new/delete on Windows
...
Reviewed at http://reviews.llvm.org/D3870
llvm-svn: 209416
2014-05-22 11:31:21 +00:00
Timur Iskhodzhanov
818b2e8f71
[ASan/Win] Add a comment about DCL-using-static vs threads
...
llvm-svn: 209414
2014-05-22 10:24:48 +00:00
Sergey Matveev
162d7cb9d1
[sanitizer] Attempt to fix test.
...
llvm-svn: 209301
2014-05-21 14:36:05 +00:00
Sergey Matveev
83f91e786c
[sanitizer] Add __sanitizer_maybe_open_cov_file().
...
Summary: Add a new interface function required for coverage sandboxing support.
llvm-svn: 209298
2014-05-21 13:43:52 +00:00
Kostya Serebryany
301a38b0b7
[asan] add a test which ensures that we dump coverage after SEGV
...
llvm-svn: 209295
2014-05-21 13:20:14 +00:00
Dmitry Vyukov
96ebc5d7db
tsan: deflake test
...
llvm-svn: 209290
2014-05-21 12:02:08 +00:00
Evgeniy Stepanov
bce21acf25
[msan] Implement MSAN_OPTIONS=print_stats=1.
...
llvm-svn: 209287
2014-05-21 09:56:28 +00:00
Evgeniy Stepanov
f77f2ece71
[tsan] Fix gotsan build.
...
llvm-svn: 209286
2014-05-21 09:42:56 +00:00
Evgeniy Stepanov
208aae8ee0
[msan] Chained origins re-design.
...
Generalize StackDepot and create a new specialized instance of it to
efficiently (i.e. without duplicating stack trace data) store the
origin history tree.
This reduces memory usage for chained origins roughly by an order of
magnitude.
Most importantly, this new design allows us to put two limits on
stored history data (exposed in MSAN_OPTIONS) that help avoid
exponential growth in used memory on certain workloads.
See comments in lib/msan/msan_origin.h for more details.
llvm-svn: 209284
2014-05-21 09:02:13 +00:00
Kostya Serebryany
e88161626f
[lsan] disable lsan if wordsize is not 64
...
llvm-svn: 209283
2014-05-21 08:30:18 +00:00
Evgeniy Stepanov
687933f55d
[asan] Fix x86 asm instrumentation to preserve flags.
...
This change also enables asm instrumentation in asan tests that was
accidentally disabled yearlier, and adds a sanity test for that.
Patch by Yuri Gorshenin.
llvm-svn: 209282
2014-05-21 08:21:14 +00:00
Kostya Serebryany
b9aa538db1
[sanitizer] fix linux_dirent for SANITIZER_X32; based on patch by H.J. Lu
...
llvm-svn: 209281
2014-05-21 08:21:13 +00:00
Kostya Serebryany
b4e24fccd1
[sanitizer] define SANITIZER_X32 and use it in ThreadDescriptorSize; partially based on patch by H.J. Lu
...
llvm-svn: 209279
2014-05-21 08:01:44 +00:00
Kostya Serebryany
84019ff7e5
Cast pointers to uptr when calling internal_syscall
...
For Linux/x86-64, pointers passed to internal_syscall should be casted
to uptr first. Otherwise, they won't be properly extended to 64-bit for
x32.
Patch by H.J. Lu
llvm-svn: 209278
2014-05-21 07:49:03 +00:00
Kostya Serebryany
6c9eacb384
Use 64-bit pointer to unwind stack for x86-64
...
X32 uses ILP32 data model in 64-bit hardware mode. This patch always
uses 64-bit pointer to unwind stack for x86-64.
Patch by H.J. Lu
llvm-svn: 209277
2014-05-21 07:34:03 +00:00
Greg Fitzgerald
1733b5e263
XFAIL ptrace test on arm
...
The patch adds better target_triple and target_arch defaults for lit tests,
which allows us to XFAIL tests based on architecture.
Was:
target_triple = LLVM_DEFAULT_TARGET_TRIPLE
target_arch = HOST_ARCH
Now:
target_triple = COMPILER_RT_TEST_TARGET_TRIPLE
, otherwise LLVM_DEFAULT_TARGET_TRIPLE
target_arch = first item in COMPILER_RT_TEST_TARGET_TRIPLE
Differential Revision: http://reviews.llvm.org/D3855
llvm-svn: 209256
2014-05-20 23:31:26 +00:00
Greg Fitzgerald
38ff567743
[ubsan] fix vptr test on ARM
...
Differential Revision: http://reviews.llvm.org/D3751
llvm-svn: 209249
2014-05-20 22:07:58 +00:00
Greg Fitzgerald
40a6401b1f
Run common and profile tests in cross-compiled builds.
...
Route target_cflags to common and profile tests
llvm-svn: 209248
2014-05-20 22:04:27 +00:00
Joerg Sonnenberger
b1cc6d5603
Go via uintptr_t when casting away constness, otherwise GCC will warn
...
when using -Wcast-qual.
llvm-svn: 209214
2014-05-20 16:37:07 +00:00
Timur Iskhodzhanov
e7894f3b14
[ASan Win] Simplify and improve the way we forward ASan interface calls from DLLs
...
Reviewed at http://reviews.llvm.org/D3848
llvm-svn: 209210
2014-05-20 14:26:19 +00:00
Sergey Matveev
6d8b9a747c
[sanitizer] Fix go build following r209121.
...
llvm-svn: 209136
2014-05-19 16:08:53 +00:00
Joerg Sonnenberger
5c29582d53
Revert use of 128bit support on 32bit PPC, it breaks build at least with
...
GCC and that doesn't expose any *ti* functions either.
llvm-svn: 209133
2014-05-19 15:48:46 +00:00