Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [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 | |||||
* | [Sanitizer] Make slow unwinder on Linux more robust | Alexey Samsonov | 2013-11-15 | 1 | -3/+5 | |
| | | | | llvm-svn: 194805 | |||||
* | Reapply asan coverage changes 194702-194704. | Bob Wilson | 2013-11-15 | 1 | -0/+45 | |
| | | | | | | | | I still don't know what is causing our bootstrapped LTO buildbots to fail, but llvm r194701 seems to be OK and I can't imagine that these changes could cause the problem. llvm-svn: 194790 | |||||
* | Speculatively revert asan coverage changes 194702-194704. | Bob Wilson | 2013-11-15 | 1 | -45/+0 | |
| | | | | | | | | | Apple's bootstrapped LTO builds have been failing, and these changes (along with llvm 194701) are the only things on the blamelist. I will either reapply these changes or help debug the problem, depending on whether this fixes the buildbots. llvm-svn: 194779 | |||||
* | [asan] Poor man's coverage that works with ASan (compiler-rt part) | Kostya Serebryany | 2013-11-14 | 1 | -0/+45 | |
| | | | | llvm-svn: 194702 | |||||
* | [ASan] Introduce a top-level target to collect all ASan runtimes and deps | Alexey Samsonov | 2013-11-14 | 1 | -2/+1 | |
| | | | | llvm-svn: 194696 | |||||
* | [Sanitizer] Add print_summary runtime flag to disable error summaries (UBSan ↵ | Alexey Samsonov | 2013-11-14 | 1 | -0/+14 | |
| | | | | | | doesn't need them) llvm-svn: 194685 | |||||
* | [ASan] Do not rely on malloc context in allocator reports. | Alexey Samsonov | 2013-11-13 | 3 | -8/+24 | |
| | | | | | | | | | | | Invoke a fatal stack trace unwinder when ASan prints allocator-relevant error reports (double-free, alloc-dealloc-mismatch, invalid-free). Thus we'll be able to print complete stack trace even if allocation/free stacks are not stored (malloc_context_size=0). Based on the patch by Yuri Gribov! llvm-svn: 194579 | |||||
* | [ASan] Use new feature of FileCheck: provide multiple --check-prefix args | Alexey Samsonov | 2013-11-13 | 6 | -61/+37 | |
| | | | | llvm-svn: 194578 | |||||
* | [asan] fix a leak in tds ↵ | Kostya Serebryany | 2013-11-13 | 1 | -0/+39 | |
| | | | | | | (https://code.google.com/p/address-sanitizer/issues/detail?id=233) llvm-svn: 194572 | |||||
* | [ASan] Use OS-specific matches in the malloc_context_size.cc lit test. | Alexander Potapenko | 2013-11-06 | 1 | -8/+16 | |
| | | | | | | The top stack frames for operator new and operator delete are different on Linux and Darwin. llvm-svn: 194150 | |||||
* | [ASan] Disable back init-order checker. Make strict_init_order imply ↵ | Alexey Samsonov | 2013-11-06 | 4 | -7/+5 | |
| | | | | | | check_initialization_order llvm-svn: 194125 | |||||
* | [ASan] Make sure slow stack unwinder doesn't return empty stacks. | Alexey Samsonov | 2013-11-05 | 1 | -0/+19 | |
| | | | | llvm-svn: 194107 | |||||
* | Add a CMake option COMPILER_RT_DEBUG for building runtimes with full debug info. | Peter Collingbourne | 2013-10-25 | 3 | -0/+6 | |
| | | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1984 llvm-svn: 193449 | |||||
* | [ASan] fix compilation of atexit_stats.cc on OSX | Alexander Potapenko | 2013-10-18 | 1 | -0/+2 | |
| | | | | llvm-svn: 192973 | |||||
* | [asan] fix a test on Mac | Kostya Serebryany | 2013-10-18 | 1 | -0/+2 | |
| | | | | llvm-svn: 192960 | |||||
* | [asan] fix atexit stats | Kostya Serebryany | 2013-10-18 | 2 | -3/+11 | |
| | | | | llvm-svn: 192956 | |||||
* | [ASan] fix assign_large_valloc_to_global.cc to use the correct header for ↵ | Alexander Potapenko | 2013-10-17 | 1 | -0/+4 | |
| | | | | | | valloc() on OSX. llvm-svn: 192901 | |||||
* | [asan] fix a failure with ASAN_OPTIONS=verbosity=1:use_sigaltstack=1 | Kostya Serebryany | 2013-10-17 | 1 | -0/+2 | |
| | | | | llvm-svn: 192892 | |||||
* | [asan] Fix a deadlock between asan's allocator and lsan | Kostya Serebryany | 2013-10-17 | 1 | -0/+5 | |
| | | | | | | | | | | | | | | | | Summary: This fixes a deadlock which happens in lsan on a large memalign-allocated chunk that resides in lsan's root set. Reviewers: samsonov, earthdok Reviewed By: earthdok CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1957 llvm-svn: 192885 | |||||
* | Use configured PYTHON in asan lit tests. | Will Dietz | 2013-10-17 | 1 | -1/+2 | |
| | | | | llvm-svn: 192870 | |||||
* | [asan] introduce run-time flag 'poison_partial' | Kostya Serebryany | 2013-10-16 | 1 | -0/+19 | |
| | | | | llvm-svn: 192793 | |||||
* | Fix a typo. | Evgeniy Stepanov | 2013-10-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 192685 | |||||
* | [ASan] Make test from r192581 Linux-only, as wild memory contents is less ↵ | Alexey Samsonov | 2013-10-15 | 1 | -0/+0 | |
| | | | | | | predictable on Mac llvm-svn: 192677 | |||||
* | [ASan] Don't die with internal ASan error on large buffer overflows | Alexey Samsonov | 2013-10-14 | 2 | -1/+24 | |
| | | | | | | | | | | | | | | | | | | | | Summary: Out-of-bound access may touch not-yet allocated or already freed and recycled from quarantine chunks. We should treat this situation as a "free-range memory access" and avoid printing any data about that irrelevant chunk (which may be inconsistent). This should fix https://code.google.com/p/address-sanitizer/issues/detail?id=183 Reviewers: kcc Reviewed By: kcc CC: timurrrr, llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1893 llvm-svn: 192581 | |||||
* | [asan] introduce run-time flag uar_stack_size_log to control the size of ↵ | Kostya Serebryany | 2013-09-27 | 1 | -0/+7 | |
| | | | | | | FakeStack; don't crash when the fake stack is exhausted, move some code to .cc file llvm-svn: 191510 | |||||
* | [asan] remove -fsanitize=use-after-return from the tests (this flag now ↵ | Kostya Serebryany | 2013-09-23 | 5 | -12/+13 | |
| | | | | | | comes with asan by default) llvm-svn: 191204 | |||||
* | [ASan] Fix the interface test on Darwin. | Alexander Potapenko | 2013-09-23 | 1 | -0/+2 | |
| | | | | llvm-svn: 191187 | |||||
* | [asan] disable the detect_stack_use_after_return run-time flag by default ↵ | Kostya Serebryany | 2013-09-23 | 2 | -0/+2 | |
| | | | | | | and enable it explicitly in tests. This is done in preparation to enabling the -fsanitize=use-after-return compile-time flag by default when -fsanitize=address is present. llvm-svn: 191184 | |||||
* | [ASan] Fix init-order-dlopen.cc test to not depend on the ↵ | Alexander Potapenko | 2013-09-19 | 2 | -2/+7 | |
| | | | | | | -Wl,-undefined,dynamic_lookup being passed to the linker. llvm-svn: 191012 | |||||
* | [asan] add a run-time option detect_stack_use_after_return, add verbosity ↵ | Kostya Serebryany | 2013-09-18 | 1 | -0/+1 | |
| | | | | | | output for fake stack llvm-svn: 190932 | |||||
* | [asan] a bit of performance improvement in fake stack, generalized one test, ↵ | Kostya Serebryany | 2013-09-12 | 1 | -4/+16 | |
| | | | | | | fixed android build of another test llvm-svn: 190606 | |||||
* | [asan] add a test for use-after-return and exceptions and fix it. Not 100% ↵ | Kostya Serebryany | 2013-09-12 | 1 | -0/+27 | |
| | | | | | | sure this is a complete fix, will keep looking for harder cases. llvm-svn: 190603 | |||||
* | [asan] hopefully make the FakeStack async-signal safe, enable the related test | Kostya Serebryany | 2013-09-12 | 2 | -7/+35 | |
| | | | | llvm-svn: 190592 | |||||
* | [asan] refactor the use-after-return API so that the size class is computed ↵ | Kostya Serebryany | 2013-09-10 | 1 | -0/+1 | |
| | | | | | | at compile time instead of at run-time. compiler-rt part llvm-svn: 190406 | |||||
* | [sanitizer] Fix PR17138. | Evgeniy Stepanov | 2013-09-09 | 1 | -0/+13 | |
| | | | | | | | strerror_r on OSX returns a positive error code when the errno value is unknown. Buffer contents are initialized in any case. llvm-svn: 190295 | |||||
* | [ASan] fix one more memory leak in test case | Alexey Samsonov | 2013-09-08 | 1 | -0/+1 | |
| | | | | llvm-svn: 190277 | |||||
* | [ASan] turn on leak checking for ASan tests and fix a few discovered leaks | Alexey Samsonov | 2013-09-08 | 4 | -0/+10 | |
| | | | | llvm-svn: 190274 | |||||
* | [sanitizer] A bunch of linux system call handlers. | Evgeniy Stepanov | 2013-09-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 190157 | |||||
* | [ASan] make the check for NULL more portable. | Alexander Potapenko | 2013-09-06 | 1 | -6/+8 | |
| | | | | llvm-svn: 190139 | |||||
* | [asan] make calloc crash instead of returning 0 on overflow (controlled by ↵ | Kostya Serebryany | 2013-09-06 | 1 | -0/+14 | |
| | | | | | | the allocator_may_return_null flag) llvm-svn: 190128 | |||||
* | [sanitizer] make the allocator crash instead of returning 0 on huge size ↵ | Kostya Serebryany | 2013-09-06 | 1 | -0/+65 | |
| | | | | | | (controlled by the allocator_may_return_null flag) llvm-svn: 190127 | |||||
* | [asan] add a test that demonstrates why the current use-after-return is not ↵ | Kostya Serebryany | 2013-09-04 | 1 | -0/+66 | |
| | | | | | | signal-safe llvm-svn: 189943 | |||||
* | [asan] make use-after-return handle very deep recursion; fixes 483.xalancbmk ↵ | Kostya Serebryany | 2013-09-04 | 1 | -0/+23 | |
| | | | | | | in UAR mode llvm-svn: 189929 | |||||
* | implement PR17059: more visible diagnostics for stack-buffer-overflow | Kostya Serebryany | 2013-09-03 | 2 | -0/+46 | |
| | | | | llvm-svn: 189806 | |||||
* | ASan, LSan, MSan: try to find llvm-symbolizer binary in PATH if it is not ↵ | Alexey Samsonov | 2013-09-03 | 1 | -3/+0 | |
| | | | | | | provided. Now we don't need to explicitly set the location of llvm-symbolizer in lit test configs. llvm-svn: 189801 | |||||
* | [ASan] Make blacklist test more robust | Alexey Samsonov | 2013-09-02 | 1 | -2/+4 | |
| | | | | llvm-svn: 189748 | |||||
* | Improve collecting malloc stats in ASan | Alexey Samsonov | 2013-09-02 | 1 | -0/+43 | |
| | | | | | | | | | | | | | | | | Summary: This change makes races between updates of thread-local stats and merging all the thread-local stats together less harmful. Reviewers: kcc Reviewed By: kcc CC: dvyukov, llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1572 llvm-svn: 189744 |