summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/asan/TestCases/Linux
Commit message (Collapse)AuthorAgeFilesLines
...
* [powerpc] mark static_tls.cc test as UNSUPPORTED on powerpc64Bill Seurer2016-05-201-0/+2
| | | | | | | An upcoming change for ld in binutils 2.26 causes this test to always fail. llvm-svn: 270223
* [mips][ias] Two XFAIL's now pass on 32-bit MIPS.Daniel Sanders2016-05-142-2/+2
| | | | llvm-svn: 269571
* [asan] Bail out on stack overflow in recovery mode.Maxim Ostapenko2016-05-061-0/+36
| | | | | | | | | | In recovery mode, when ASan detects stack overflow (say, when infinite recursion detected), it tries to continue program execution and hangs on repetitive error reports. There isn't any sense to do it, we can just bail out on stack overflow error, because the program would crash soon anyway. Differential Revision: http://reviews.llvm.org/D19958 llvm-svn: 268713
* [ASan] [SystemZ] Mark segv_read_write.c as UNSUPPORTED.Marcin Koscielnicki2016-04-291-1/+1
| | | | | | | | | | On s390*-linux, sigcontext just doesn't contain any information that could be used to recover the type of access, so there's no way to fix this, short of emulating the faulting instruction. Differential Revision: http://reviews.llvm.org/D19655 llvm-svn: 267960
* [sanitizer] [SystemZ] Add ptrace support bits.Marcin Koscielnicki2016-04-261-0/+7
| | | | | | Differential Revision: http://reviews.llvm.org/D19134 llvm-svn: 267548
* Revert "[sanitizers] read/write page fault detection on mac."Mehdi Amini2016-04-261-0/+26
| | | | | | | | | This reverts commit r267477. It broke our bots that enables the AArch64 backends, it seems that this code is using a Darwin *X86 specific* field. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 267526
* [sanitizers] read/write page fault detection on mac.Mike Aizatsky2016-04-251-26/+0
| | | | | | | | Subscribers: kubabrecka Differential Revision: http://reviews.llvm.org/D19495 llvm-svn: 267477
* [asan] Prefer alloc-dealloc-mismatch to new-delete-type-mismatch.Evgeniy Stepanov2016-04-131-0/+16
| | | | | | | | With -fsized-deallocation, new[] vs delete mismatch is reported as new-delete-type-mismatch. This is technically true, but alloc-dealloc-mismatch describes it better. llvm-svn: 266246
* Apply suggestion from HJ Lu to avoid misaligned stack in testReid Kleckner2016-04-041-1/+1
| | | | | | Fixes PR27191 llvm-svn: 265322
* [asan] bump the scariness score of read-after-frees (based on feedback from ↵Kostya Serebryany2016-03-261-3/+3
| | | | | | the Chrome security team) llvm-svn: 264481
* [asan] Fix odr_c_test failure with gold linkerAlexey Samsonov2016-03-041-0/+3
| | | | | | | | | | | Summary: Adds another global to asan's odr_c_test to help force the target global to not lie at the start of bss with the gold linker where it is always aligned. Patch by Derek Bruening! llvm-svn: 262678
* [asan] Fix UB in test/asan/TestCases/Linux/recvfrom.cc testcase.Maxim Ostapenko2016-02-291-1/+1
| | | | llvm-svn: 262210
* [asan] Re-enable test/asan/TestCases/Linux/recvfrom.cc testcase.Maxim Ostapenko2016-02-291-49/+39
| | | | | | | | | | | This testcase failed on sanitizer-x86_64-linux buildbot in large parallel build due to race on port 1234 between AddressSanitizer-i386-linux and AddressSanitizer-x86_64-linux instances of recvfrom.cc. This patch tries to resolve the issue by relying on kernel to choose available port instead of hardcoding its number in testcase. Differential Revision: http://reviews.llvm.org/D17639 llvm-svn: 262204
* [sanitizer] Fix third parameter in COMMON_INTERCEPTOR_WRITE_RANGE in recv ↵Maxim Ostapenko2016-02-251-1/+1
| | | | | | | | | | | and recvfrom interceptors. Pass res instead of len as third parameter to COMMON_INTERCEPTOR_WRITE_RANGE, because otherwise we can write to unrelated memory (in MSan) or get wrong report (in ASan). Differential Revision: http://reviews.llvm.org/D17608 llvm-svn: 261898
* [asan] Disable recvfrom test failing on the bots.Maxim Ostapenko2016-02-251-0/+2
| | | | llvm-svn: 261870
* [asan] Disable recvfrom testcase on Android due to buildbot failure.Maxim Ostapenko2016-02-251-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Trying to fix following error on Android: FAIL: AddressSanitizer-arm-android :: TestCases/Linux/recvfrom.cc (47 of 350) ... Command Output (stderr): -- /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:22:22: error: variable has incomplete type 'struct sockaddr_in' struct sockaddr_in serveraddr; // server's addr ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:22:10: note: forward declaration of 'sockaddr_in' struct sockaddr_in serveraddr; // server's addr ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:29:38: error: use of undeclared identifier 'INADDR_ANY' serveraddr.sin_addr.s_addr = htonl(INADDR_ANY); ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:30:25: error: use of undeclared identifier 'htons' serveraddr.sin_port = htons(kPortNum); ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:45:22: error: variable has incomplete type 'struct sockaddr_in' struct sockaddr_in serveraddr; // server's addr ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:45:10: note: forward declaration of 'sockaddr_in' struct sockaddr_in serveraddr; // server's addr ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:69:25: error: use of undeclared identifier 'htons' serveraddr.sin_port = htons(kPortNum); llvm-svn: 261855
* [sanitizer] Move recvmsg and recv interceptors to sanitizer_common.Maxim Ostapenko2016-02-251-0/+79
| | | | | | | | | This patch moves recv and recvfrom interceptors from MSan and TSan to sanitizer_common to enable them in ASan. Differential Revision: http://reviews.llvm.org/D17479 llvm-svn: 261841
* [tests] Remove "supported-target" in favor of "target-arch" lit features.Alexey Samsonov2016-02-2313-13/+13
| | | | | | | | | | Test cases definitely should not care about the complete set of architectures supported by compiler-rt - they should only care about current architecture that the test suite was configured for. Introduce new lit feature to reflect this, and convert tests to use it. llvm-svn: 261603
* [sancov] requiring dynamic asan.Mike Aizatsky2016-02-191-1/+1
| | | | llvm-svn: 261362
* [sancov] using static asanMike Aizatsky2016-02-191-1/+1
| | | | | | | We are not able to recover coverage points from dynamically linked binaries at this point without symbols in @plt tables. llvm-svn: 261352
* PR26606: Make abort_on_error.cc test more portable.Alexey Samsonov2016-02-171-1/+1
| | | | llvm-svn: 261157
* [LSan] Print more helpful error message if LSan crashes during leak detection.Alexey Samsonov2016-02-121-3/+3
| | | | llvm-svn: 260717
* [sancov] improved object files handling.Mike Aizatsky2016-02-121-1/+1
| | | | | | | | | | Updating sancov invocation on html_cov_dump. sancov change: http://reviews.llvm.org/D17169 Differential Revision: http://reviews.llvm.org/D17171 llvm-svn: 260629
* [asan] update the scariness score: tweak a few weights and add testsKostya Serebryany2016-02-091-4/+18
| | | | llvm-svn: 260327
* [asan] Implement SEGV read vs write detection for ARM and AArch64.Evgeniy Stepanov2016-02-081-4/+12
| | | | llvm-svn: 260163
* [asan] re-commit r259961, this time making the test Linux-OnlyKostya Serebryany2016-02-081-0/+178
| | | | llvm-svn: 260128
* [asan] XFAIL local_alias.cc testcase on android in order to fix ↵Maxim Ostapenko2016-02-081-0/+2
| | | | | | sanitizer-x86_64-linux buildbot. llvm-svn: 260090
* [asan] XFAIL local alias related tests on Mips due to ↵Maxim Ostapenko2016-02-082-0/+3
| | | | | | https://llvm.org/bugs/show_bug.cgi?id=26525. llvm-svn: 260079
* [asan] Introduce new approach for ODR violation detection based on odr ↵Maxim Ostapenko2016-02-082-0/+43
| | | | | | | | | | | | | | indicator symbols. This is a compiler-rt part of this http://reviews.llvm.org/D15642 patch. Here, we add a new approach for ODR violation detection. Instead of using __asan_region_is_poisoned(g->beg, g->size_with_redzone) on global address (that would return false now due to using private alias), we can use new globally visible indicator symbol to perform the check. Differential Revision: http://reviews.llvm.org/D15644 llvm-svn: 260076
* [asan] properly report an un-aligned global variable instead of just crashingKostya Serebryany2016-02-061-0/+25
| | | | llvm-svn: 259979
* [asan] fix the non-x86 buildKostya Serebryany2016-02-041-0/+1
| | | | llvm-svn: 259745
* [asan] When catching a signal caused by a memory access, print if it's a ↵Kostya Serebryany2016-02-041-0/+17
| | | | | | READ or a WRITE. This touches win/mac files which I have not tested, if a win/mac bot fails I'll try to quick-fix llvm-svn: 259741
* putting requires on one line - ppc still executes my tests.Mike Aizatsky2016-01-281-2/+1
| | | | llvm-svn: 259012
* [sancov] run sancov test on x86_64 linux onlyMike Aizatsky2016-01-281-0/+1
| | | | llvm-svn: 259006
* [sancov] running sancov test on linux onlyMike Aizatsky2016-01-281-0/+24
| | | | llvm-svn: 259004
* [asan] Add mincore test.Evgeniy Stepanov2015-12-211-0/+34
| | | | | | | ASan does not really do anything interesting with mincore, but this test verifies that the function still works correctly. llvm-svn: 256207
* [asan] Correctly release memory allocated during early startup.Yury Gribov2015-12-011-0/+36
| | | | | | | | | | Calloc interceptor initially allocates memory from temp buffer (to serve dlsyms called during asan_init). There is a chance that some non-instrumented library (or executable) has allocated memory with calloc before asan_init and got pointer from the same temporary buffer which later caused problems with free. Inspired by https://github.com/google/sanitizers/issues/626 Differential Revision: http://reviews.llvm.org/D14979 llvm-svn: 254395
* [asan] Enable halt_on_error tests on OS X.Yury Gribov2015-11-172-187/+0
| | | | llvm-svn: 253342
* [asan] Restored asynch signal test.Yury Gribov2015-11-161-0/+104
| | | | llvm-svn: 253204
* [asan] Fixed invalid check in test.Yury Gribov2015-11-131-2/+2
| | | | llvm-svn: 253037
* [asan] Dump test output in case of error in single-threaded mode.Yury Gribov2015-11-131-1/+1
| | | | llvm-svn: 253035
* [asan] Fix test to properly handle collisions.Yury Gribov2015-11-131-6/+6
| | | | llvm-svn: 253025
* [asan] Get rid of rand_r (not available on all targets).Yury Gribov2015-11-131-8/+9
| | | | llvm-svn: 253021
* [asan] Mark halt_on_error-torture test unsupported on android.Evgeniy Stepanov2015-11-121-0/+1
| | | | | | Android libc is missing rand_r until API 21. ASan supports API 19. llvm-svn: 252930
* [asan] Remove a flaky test.Evgeniy Stepanov2015-11-111-109/+0
| | | | llvm-svn: 252805
* [ASan] Improve portability of new tests.Yury Gribov2015-11-112-2/+7
| | | | llvm-svn: 252742
* Implement some TLS support for PowerPC64.Jay Foad2015-11-111-1/+1
| | | | | | | | | | | | Summary: This is enough to get the asan static_tls.cc test case working. Reviewers: eugenis, samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D14574 llvm-svn: 252738
* [ASan] Add stress test for asynch signals in nonhalting mode.Yury Gribov2015-11-111-0/+106
| | | | | | Differential Revision: http://reviews.llvm.org/D14241 llvm-svn: 252729
* [ASan] Enable optional ASan recovery.Yury Gribov2015-11-112-0/+91
| | | | | | Differential Revision: http://reviews.llvm.org/D12318 llvm-svn: 252723
* [mips][asan] XFAIL ptrace.ccDaniel Sanders2015-10-271-0/+1
| | | | | | | It was recently enabled for non-x86 targets and doesn't seem to work for MIPS. The reason is currently unclear so XFAILing while I investigate. llvm-svn: 251466
OpenPOWER on IntegriCloud