summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merging r231402:release_36Joerg Sonnenberger2015-03-121-8/+8
| | | | | | | | Move use of __builtin_longjmp under the same conditions as the only caller of the function. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_36@231993 91177308-0d34-0410-b5e6-96231b3b80d8
* Merging r226809:Hans Wennborg2015-02-031-6/+8
| | | | | | | | | | | ------------------------------------------------------------------------ r226809 | timurrrr | 2015-01-22 04:24:21 -0800 (Thu, 22 Jan 2015) | 1 line [ASan/Win] Move the shadow to 0x30000000 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_36@228007 91177308-0d34-0410-b5e6-96231b3b80d8
* Creating release_36 branch off revision 225991Hans Wennborg2015-01-140-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_36@225995 91177308-0d34-0410-b5e6-96231b3b80d8
* builtins: avoid duplicating unwind declarationsSaleem Abdulrasool2015-01-143-44/+12
| | | | | | | | | Use unwind.h to get the declarations for unwinding interfaces. This header is already provided by clang and gcc, so this adds no additional dependencies for building the builtins library. It avoids the duplication which may drift over time though. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225990 91177308-0d34-0410-b5e6-96231b3b80d8
* [Msan] Fix strlen() and strnlen() interceptors to work on FreeBSDViktor Kutuzov2015-01-141-0/+4
| | | | | | | Differential Revision: http://reviews.llvm.org/D6928 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225986 91177308-0d34-0410-b5e6-96231b3b80d8
* Reapply debug info changes now that more precise column information is ↵David Blaikie2015-01-142-2/+2
| | | | | | available. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225959 91177308-0d34-0410-b5e6-96231b3b80d8
* Another try at handling LD_LIBRARY_PATH not being defined.Rafael Espindola2015-01-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225932 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle LD_LIBRARY_PATH not being defined.Rafael Espindola2015-01-141-1/+1
| | | | | | Should fix the bots after r225890. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225919 91177308-0d34-0410-b5e6-96231b3b80d8
* Update test cases for new -fsanitize-recover= semantics.Alexey Samsonov2015-01-124-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225725 91177308-0d34-0410-b5e6-96231b3b80d8
* [dfsan] Export dfsan_get_label_info function with C linkage.Peter Collingbourne2015-01-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225692 91177308-0d34-0410-b5e6-96231b3b80d8
* [Msan] Fix use of mmap(MAP_ANONYMOUS) in the unit tests on FreeBSDViktor Kutuzov2015-01-121-2/+3
| | | | | | | Differential Revision: http://reviews.llvm.org/D6929 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225688 91177308-0d34-0410-b5e6-96231b3b80d8
* [Msan] Fix tests reading /proc files on FreeBSDViktor Kutuzov2015-01-121-7/+13
| | | | | | | Differential Revision: http://reviews.llvm.org/D6926 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225686 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Move the shadow on Windows 32-bit from 0x20000000 to 0x40000000Timur Iskhodzhanov2015-01-122-6/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225641 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Fix uninit in coverage.Evgeniy Stepanov2015-01-121-6/+30
| | | | | | | | pc_fd was not initialized to (-1) on some code paths, resulting in the program erroneously closing stdin when reinitializing coverage. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225637 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Pass activation options in the android test runner.Evgeniy Stepanov2015-01-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225636 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix two extra semicolon warningsEhsan Akhgari2015-01-122-2/+3
| | | | | | | | | | Reviewers: timurrrr Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6890 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225635 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Handle SIGBUS on Linux.Jay Foad2015-01-122-1/+65
| | | | | | | | | | | | | | | | | | Summary: On Linux in some situations we can get SIGBUS instead of SIGSEGV on stack overflow, so asan should handle SIGBUS as well as SIGSEGV. https://code.google.com/p/address-sanitizer/issues/detail?id=369 Reviewers: samsonov, glider Reviewed By: glider Subscribers: glider, llvm-commits Differential Revision: http://reviews.llvm.org/D6923 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225630 91177308-0d34-0410-b5e6-96231b3b80d8
* Add FreeBSD support for __clear_cache.Roman Divacky2015-01-111-1/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225610 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "Reapply debug info changes now that more precise column information ↵David Blaikie2015-01-092-2/+2
| | | | | | | | | | is available." While the clang patch is reverted pending investigation/fixes. This reverts commit r225001. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225560 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove AsanInterceptsSignal in favor of (equivalent) IsDeadlySignal.Alexey Samsonov2015-01-094-16/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225556 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] use the right memory orderKostya Serebryany2015-01-091-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225546 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Adding a regression test for ↵Kuba Brecka2015-01-091-0/+38
| | | | | | https://code.google.com/p/address-sanitizer/issues/detail?id=368 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225484 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] make a test consume 2x less RAM (we observe flaky bot failures that ↵Kostya Serebryany2015-01-081-10/+10
| | | | | | seem like OOMs) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225478 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix memory leaks in GetListOfModules() users.Alexey Samsonov2015-01-084-18/+33
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225472 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Remove the hardcoded limit of address ranges in LoadedModule.Alexey Samsonov2015-01-084-30/+38
| | | | | | This should fix https://code.google.com/p/address-sanitizer/issues/detail?id=368. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225469 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizers] Fix internal_lseek() to work on FreeBSDViktor Kutuzov2015-01-082-4/+8
| | | | | | | Differential Revision: http://reviews.llvm.org/D6825 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225443 91177308-0d34-0410-b5e6-96231b3b80d8
* XFAIL AArch64 UBsan test, just like ARMRenato Golin2015-01-071-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225370 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] add flag quarantine_size_mb, deprecate quarantine_sizeKostya Serebryany2015-01-077-19/+53
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225337 91177308-0d34-0410-b5e6-96231b3b80d8
* [TSan] Fix Go build.Alexey Samsonov2015-01-072-7/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225336 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Change the runtime flag representation.Alexey Samsonov2015-01-0720-499/+510
| | | | | | | | | | | This mirrors r225239 to all the rest sanitizers: ASan, DFSan, LSan, MSan, TSan, UBSan. Now the runtime flag type, name, default value and description is located in the single place in the .inc file. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225327 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] add a flag soft_rss_limit_mbKostya Serebryany2015-01-069-6/+132
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225323 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Improve unit tests in COMPILER_RT_DEBUG=ON mode.Alexey Samsonov2015-01-064-3/+6
| | | | | | | Propagate -DSANITIZER_DEBUG definition to unit tests. Make sure unit tests depend on compiler-rt headers. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225298 91177308-0d34-0410-b5e6-96231b3b80d8
* Use -DSANITIZER_DEBUG=1 if COMPILER_RT_DEBUG=ON, now that PR22083 is fixed.Alexey Samsonov2015-01-061-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225293 91177308-0d34-0410-b5e6-96231b3b80d8
* [ubsan] disable coverage-levels.cc on darwin until we can investigate what's ↵Kostya Serebryany2015-01-061-0/+2
| | | | | | wrong there. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225281 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Bump the self-imposed stack limit from 128k to 256k. PowerPC64Jay Foad2015-01-061-1/+1
| | | | | | | | | | | | | | | Linux has 64k pages, so the old limit was only two pages. With ASLR the initial sp might be right at the start of the second page, so the stack will immediately grow down into the first page; and if you use all pages of a limited stack then asan hits a kernel bug to do with how stack guard pages are reported in /proc/self/maps: http://lkml.iu.edu//hypermail/linux/kernel/1501.0/01025.html We should still fix the underlying problems, but in the mean time this patch makes the test work with 64k pages as well as it does with 4k pages. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225261 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Use COMMON_FLAG macro to describe common runtime flags.Alexey Samsonov2015-01-064-183/+143
| | | | | | | | | | | | | | | | | Summary: Introduce a single place where we specify flag type, name, default value, and description. This removes a large amount of boilerplate and ensures we won't leave flags uninitialized. Test Plan: regression test suite Reviewers: kcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6851 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225239 91177308-0d34-0410-b5e6-96231b3b80d8
* [ubsan] partially enable -fsanitize-coverage=N with ubsan. It will work as ↵Kostya Serebryany2015-01-062-0/+37
| | | | | | usual in most cases but will not dump coverage on error with -fno-sanitize-recover (that'll be a separate fix) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225234 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan/tracing] write the trace using a sequence of internal_write calls ↵Kostya Serebryany2015-01-061-13/+23
| | | | | | instead of just one (otherwise files of > 2Gb are trunkated). Also a minor adjustment to the trace collection. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225230 91177308-0d34-0410-b5e6-96231b3b80d8
* Add 64-bit multiply functions to iOS arm64 compiler-rt dylibNick Kledzik2015-01-061-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225226 91177308-0d34-0410-b5e6-96231b3b80d8
* tests: correct builtins test if built under -mthumb on ARMSaleem Abdulrasool2015-01-052-11/+28
| | | | | | | | | | | The clear_cache and enable_execute_stack tests attempt to memcpy the definition of a function into a buffer before executing the function. The problem with this approach is that on some targets (ARM with thumb mode compilation, MIPS with MIPS16 codegen or uMIPS), you would use a pointer which is incorrect (it would be off-by-one) due to the ISA selection being encoded into the address. This ensures that the function address is retrieved correctly in all cases. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225215 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove TSAN_DEBUG in favor of SANITIZER_DEBUG.Alexey Samsonov2015-01-0318-38/+54
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225111 91177308-0d34-0410-b5e6-96231b3b80d8
* Replace DCHECK with DCHECK_LE where appropriate.Alexey Samsonov2015-01-031-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225110 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan/tracing] extend the test a bit more, simplify the tracing code, add a ↵Kostya Serebryany2015-01-032-20/+33
| | | | | | guard page to trace array, fix the trace IDs before dumping git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225108 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] extend coverage-tracing.cc testKostya Serebryany2015-01-031-11/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225107 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] simplify the tracing code, make it use the same guard variables as ↵Kostya Serebryany2015-01-032-44/+18
| | | | | | coverage git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225103 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "Revert r224736: "[Sanitizer] Make CommonFlags immutable after ↵Alexey Samsonov2015-01-028-33/+69
| | | | | | | | | | | | | | | | initialization."" Fix test failures by introducing CommonFlags::CopyFrom() to make sure compiler doesn't insert memcpy() calls into runtime code. Original commit message: Protect CommonFlags singleton by adding const qualifier to common_flags() accessor. The only ways to modify the flags are SetCommonFlagsDefaults(), ParseCommonFlagsFromString() and OverrideCommonFlags() functions, which are only supposed to be called during initialization. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225088 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r224736: "[Sanitizer] Make CommonFlags immutable after initialization."Chandler Carruth2015-01-027-57/+33
| | | | | | | | | | We've got some internal users that either aren't compatible with this or have found a bug with it. Either way, this is an isolated cleanup and so I'm reverting it to un-block folks while we investigate. Alexey and I will be working on fixing everything up so this can be re-committed soon. Sorry for the noise and any inconvenience. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225079 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid building compiler-rt with LTO.Rafael Espindola2014-12-312-0/+2
| | | | | | | During a LTO we still need to build a compiler_rt with regular object files in the .a. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225049 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] fix coverage between fork() and exec(): reinitialize the guards after ↵Kostya Serebryany2014-12-303-13/+37
| | | | | | fork() git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225016 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] add flag coverage_pcs. When false, the coverage is not dumped as PCs. ↵Kostya Serebryany2014-12-304-0/+8
| | | | | | Useful e.g. if the user only needs coverage is bitset git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225002 91177308-0d34-0410-b5e6-96231b3b80d8