Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move ASan lit-tests under test/asan | Alexey Samsonov | 2014-02-14 | 144 | -4156/+0 |
| | | | | llvm-svn: 201413 | ||||
* | [asan] Disable 1 test on Android. | Evgeniy Stepanov | 2014-02-13 | 1 | -0/+4 |
| | | | | llvm-svn: 201332 | ||||
* | [asan] Remove extra clone() arguments in test. | Evgeniy Stepanov | 2014-02-13 | 1 | -1/+1 |
| | | | | | | Android headers define clone() as a 4-argument function without ellipsis. llvm-svn: 201331 | ||||
* | [asan] Fix null_deref test with zero base shadow. | Evgeniy Stepanov | 2014-02-13 | 1 | -1/+1 |
| | | | | | | | | | | With zero base shadow, shadow for near-zero access is itself at near-zero location. As a result, this test crashes on the shadow access, and not on the app access. Relax a check to match this behavior. llvm-svn: 201324 | ||||
* | Remove a check from strerror_r test. | Evgeniy Stepanov | 2014-02-13 | 1 | -1/+2 |
| | | | | | | | | | It's not always true: on Android, strerror_r with invalid errno prints "Unknown error ..." to the buffer and returns 0. This test now only checks that strerror_r does not crash. llvm-svn: 201321 | ||||
* | [asan] Avoid deadlock in CovDump. | Evgeniy Stepanov | 2014-02-13 | 1 | -0/+3 |
| | | | | llvm-svn: 201304 | ||||
* | [sanitizer] Fix wait4 interceptor on Android. | Evgeniy Stepanov | 2014-02-12 | 2 | -8/+31 |
| | | | | | | It's called __wait4 there. llvm-svn: 201235 | ||||
* | [asan] fix testing on Mac | Kostya Serebryany | 2014-02-06 | 1 | -0/+2 |
| | | | | llvm-svn: 200910 | ||||
* | [asan] introduce two functions that will allow implementations of C++ ↵ | Kostya Serebryany | 2014-02-06 | 2 | -0/+51 |
| | | | | | | garbage colection to work with asan's fake stack llvm-svn: 200908 | ||||
* | [ASan] Use replace_str=0 and replace_intrin=0 in printf-{2,4}.c to avoid ↵ | Alexander Potapenko | 2014-02-04 | 2 | -6/+10 |
| | | | | | | | | triggering a buffer overflow in strlen and memcpy. This change fixes printf-2.c and printf-4.c under OSX. llvm-svn: 200756 | ||||
* | [ASan] Fix printf-5.c on OSX: fix a compiler warning, avoid intercepting ↵ | Alexander Potapenko | 2014-02-04 | 1 | -4/+5 |
| | | | | | | memcpy (which triggers the error report before printf does). llvm-svn: 200751 | ||||
* | [sanitizer] Resubmit r200683: disable -ffunction-sections. | Evgeniy Stepanov | 2014-02-03 | 1 | -0/+39 |
| | | | | llvm-svn: 200686 | ||||
* | Revert r200683. | Evgeniy Stepanov | 2014-02-03 | 1 | -39/+0 |
| | | | | | | -fno-function-sections is broken in Clang. llvm-svn: 200684 | ||||
* | [sanitizer] Disable -ffunction-sections. | Evgeniy Stepanov | 2014-02-03 | 1 | -0/+39 |
| | | | | | | | It breaks when a binary is linked with --gc-sections: parts of sanitizer interface get thrown away and inaccessible from dlopen-ed libs. llvm-svn: 200683 | ||||
* | [ASan] Add a failing test that demonstrates that ASan currently breaks dead ↵ | Alexander Potapenko | 2014-01-31 | 1 | -0/+13 |
| | | | | | | | | code stripping on Linux. See https://code.google.com/p/address-sanitizer/issues/detail?id=260 for more info. llvm-svn: 200553 | ||||
* | [sanitizer] Fix typo that breaks shmctl() interceptor. | Evgeniy Stepanov | 2014-01-30 | 1 | -0/+6 |
| | | | | | | https://code.google.com/p/address-sanitizer/issues/detail?id=259 llvm-svn: 200468 | ||||
* | [asan] re-enable __tls_get_addr interceptor with a proper fix (use ↵ | Kostya Serebryany | 2014-01-30 | 1 | -2/+0 |
| | | | | | | __attribute__((tls_model(initial-exec)))) llvm-svn: 200463 | ||||
* | [asan] disable __tls_get_addr interceptor while I am investigating why it ↵ | Kostya Serebryany | 2014-01-30 | 1 | -1/+6 |
| | | | | | | causes trouble; few more debugging llvm-svn: 200462 | ||||
* | [asan] increase the buffer size for printing asan legend, add a test for legend | Kostya Serebryany | 2014-01-29 | 1 | -0/+3 |
| | | | | llvm-svn: 200387 | ||||
* | [asan] experimental intercetor for __tls_get_addr. So far it does nothing ↵ | Kostya Serebryany | 2014-01-29 | 1 | -0/+102 |
| | | | | | | interesting, actual usage will come later. See https://groups.google.com/forum/#!topic/address-sanitizer/BfwYD8HMxTM for background llvm-svn: 200384 | ||||
* | [Sanitizer] Fix false positive in snprintf interceptor - take the number of ↵ | Alexey Samsonov | 2014-01-23 | 1 | -2/+7 |
| | | | | | | actually written symbols from real snprintf call. llvm-svn: 199899 | ||||
* | Sanitize printf functions. | Alexey Samsonov | 2014-01-21 | 5 | -0/+98 |
| | | | | | | | | | | Intercept and sanitize arguments passed to printf functions in ASan and TSan (don't do this in MSan for now). The checks are controlled by runtime flag (off by default for now). Patch http://llvm-reviews.chandlerc.com/D2480 by Yuri Gribov! llvm-svn: 199729 | ||||
* | [asan] one more test for ↵ | Kostya Serebryany | 2014-01-21 | 1 | -0/+75 |
| | | | | | | https://code.google.com/p/address-sanitizer/issues/detail?id=258 llvm-svn: 199723 | ||||
* | [asan] relax the checks inside __sanitizer_annotate_contiguous_container: ↵ | Kostya Serebryany | 2014-01-21 | 1 | -0/+27 |
| | | | | | | they are too optimistic due to https://code.google.com/p/address-sanitizer/issues/detail?id=258. llvm-svn: 199715 | ||||
* | [asan] Implement delayed activation of AddressSanitizer | Evgeniy Stepanov | 2014-01-16 | 2 | -0/+65 |
| | | | | | | | | | | | | This change adds ASAN_OPTIONS=start_deactivated=1 flag. When present, ASan will start in "deactivated" mode, with no heap poisoning, no quarantine, no stack trace gathering, and minimal redzones. All this features come back when __asan_init is called for the constructor of an instrumented library. The primary use case for this feature is Android. Code itself is not Android-specific, and this patch includes a Linux test for it. llvm-svn: 199377 | ||||
* | [asan] Nuke ASAN_FLEXIBLE_MAPPING_AND_OFFSET. | Evgeniy Stepanov | 2014-01-16 | 3 | -68/+0 |
| | | | | llvm-svn: 199370 | ||||
* | [asan] Implement max_redzone runtime flag. | Evgeniy Stepanov | 2014-01-09 | 1 | -0/+26 |
| | | | | llvm-svn: 198873 | ||||
* | [ASan] Add a test for __asan_gen_ globals labels on Darwin. | Alexander Potapenko | 2013-12-25 | 1 | -0/+14 |
| | | | | | | | | | | | | | Per Nick Kledzik (http://llvm.org/bugs/show_bug.cgi?id=17976): """ For MacOSX, the labels in __cstring section should be 'L' labels, and the labels in the __const section should be non-L or 'l' labels. The later ('l') will cause the linker to remove the label in the final executable. """ , so we need to ensure that the globals emitted by ASan have appropriate labels. llvm-svn: 198022 | ||||
* | [ASan] Fix the test for __asan_gen_ globals and actually fix ↵ | Alexander Potapenko | 2013-12-25 | 1 | -1/+2 |
| | | | | | | | | http://llvm.org/bugs/show_bug.cgi?id=17976 by setting the correct linkage (as stated in the bug). llvm-svn: 198018 | ||||
* | [ASan] Make sure none of the __asan_gen_ global strings end up in the symbol ↵ | Alexander Potapenko | 2013-12-25 | 1 | -0/+7 |
| | | | | | | | | | table, add a test. This should fix http://llvm.org/bugs/show_bug.cgi?id=17976 Another test checking for the global variables' locations and prefixes on Darwin will be committed separately. llvm-svn: 198017 | ||||
* | [asan] clean up at the end of the shmget/shmctl test | Kostya Serebryany | 2013-12-23 | 1 | -0/+1 |
| | | | | llvm-svn: 197901 | ||||
* | [asan] convert a CHECK failure in __sanitizer_annotate_contiguous_container ↵ | Kostya Serebryany | 2013-12-23 | 1 | -4/+26 |
| | | | | | | into a proper warning message llvm-svn: 197899 | ||||
* | [ASan] Get rid of __asan_symbolize function | Alexey Samsonov | 2013-12-19 | 3 | -19/+0 |
| | | | | llvm-svn: 197670 | ||||
* | [asan] fix the test so that it works even if stack size is unlimited by default | Kostya Serebryany | 2013-12-16 | 1 | -1/+1 |
| | | | | llvm-svn: 197372 | ||||
* | [asan] replace the flag uar_stack_size_log with two flags ↵ | Kostya Serebryany | 2013-12-16 | 1 | -3/+3 |
| | | | | | | min_uar_stack_size_log/max_uar_stack_size_log llvm-svn: 197370 | ||||
* | [asan] rewrite asan's stack frame layout, compiler-rt part | Kostya Serebryany | 2013-12-06 | 3 | -21/+20 |
| | | | | llvm-svn: 196569 | ||||
* | [asan] revert files which I accidentally commited in r196490 | Kostya Serebryany | 2013-12-05 | 3 | -20/+21 |
| | | | | llvm-svn: 196491 | ||||
* | [tsan] fix the include path that is broken in configure/make build but works ↵ | Kostya Serebryany | 2013-12-05 | 3 | -21/+20 |
| | | | | | | in cmake build (PR18144). This is a quick fix. Will need to fix the configure/make build properly llvm-svn: 196490 | ||||
* | [asan] revert 196373: committed to many files by mistake | Kostya Serebryany | 2013-12-04 | 3 | -20/+21 |
| | | | | llvm-svn: 196374 | ||||
* | [asan] require __i686__ for the SSE test; also make weaker claims about ↵ | Kostya Serebryany | 2013-12-04 | 3 | -21/+20 |
| | | | | | | stack buffer overflows in another test llvm-svn: 196373 | ||||
* | [sanitizer] Expose __sanitizer_print_stack_trace(). | Sergey Matveev | 2013-12-03 | 1 | -0/+16 |
| | | | | | | | Expose a new interface function for debugging code built with sanitizer tools. Add an ASan implementation. llvm-svn: 196302 | ||||
* | [asan] dump coverage even if asan has reported an error | Kostya Serebryany | 2013-11-29 | 1 | -0/+7 |
| | | | | llvm-svn: 195959 | ||||
* | [sanitizer] disable shmctl intercetor in 32-bit -- it is rotten (bug filed) | Kostya Serebryany | 2013-11-29 | 1 | -0/+17 |
| | | | | llvm-svn: 195958 | ||||
* | [ASan] Fix large_allocator_unpoisons_on_free.cc to pass correct parameters ↵ | Alexander Potapenko | 2013-11-22 | 1 | -7/+9 |
| | | | | | | to mmap() on OSX. llvm-svn: 195443 | ||||
* | [asan] rename contiguous-container-buffer-overflow (too long) to ↵ | Kostya Serebryany | 2013-11-21 | 1 | -1/+1 |
| | | | | | | container-overflow llvm-svn: 195352 | ||||
* | [asan] Fix OSX tests. | Evgeniy Stepanov | 2013-11-20 | 1 | -1/+1 |
| | | | | llvm-svn: 195250 | ||||
* | [asan] Test that LargeAllocator unpoisons memory before releasing it to the OS. | Evgeniy Stepanov | 2013-11-20 | 1 | -0/+23 |
| | | | | llvm-svn: 195243 | ||||
* | [asan] new shadow poison magic for contiguous-container-buffer-overflow, ↵ | Kostya Serebryany | 2013-11-19 | 1 | -0/+16 |
| | | | | | | addressed Alexey Samsonov's comments for r195011 llvm-svn: 195117 | ||||
* | [ASan] Run one of UAS tests in UAR mode as well | Alexey Samsonov | 2013-11-18 | 1 | -1/+2 |
| | | | | llvm-svn: 195015 | ||||
* | [asan] introduce __sanitizer_annotate_contiguous_container | Kostya Serebryany | 2013-11-18 | 1 | -0/+47 |
| | | | | llvm-svn: 195011 |