summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* [Sanitizer] Revert r193501 and properly fix r193448Alexey Samsonov2013-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193522 91177308-0d34-0410-b5e6-96231b3b80d8
* asan/msan: separate different report blocks with new linesDmitry Vyukov2013-10-28
| | | | | | | | this makes the reports consistent with tsan, and much more readable. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193520 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: start the background thread with signals blocked, otherwise it can ↵Dmitry Vyukov2013-10-28
| | | | | | steal users signals git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193519 91177308-0d34-0410-b5e6-96231b3b80d8
* Work around ASan/Win breakage by r193448Timur Iskhodzhanov2013-10-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193501 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Add pthread_attr_getaffinity_np to the list of versioned functionsAlexey Samsonov2013-10-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193470 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a CMake option COMPILER_RT_DEBUG for building runtimes with full debug info.Peter Collingbourne2013-10-25
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1984 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193449 91177308-0d34-0410-b5e6-96231b3b80d8
* Overhaul the symbolizer interface.Peter Collingbourne2013-10-25
| | | | | | | | | | | | | | | | | | | | | | This moves away from creating the symbolizer object and initializing the external symbolizer as separate steps. Those steps now always take place together. Sanitizers with a legacy requirement to specify their own symbolizer path should use InitSymbolizer to initialize the symbolizer with the desired path, and GetSymbolizer to access the symbolizer. Sanitizers with no such requirement (e.g. UBSan) can use GetOrInitSymbolizer with no need for initialization. The symbolizer interface has been made thread-safe (as far as I can tell) by protecting its member functions with mutexes. Finally, the symbolizer interface no longer relies on weak externals, the introduction of which was probably a mistake on my part. Differential Revision: http://llvm-reviews.chandlerc.com/D1985 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193448 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename SpinMutex::AssertHeld to CheckLocked, for consistency with BlockingMutex.Peter Collingbourne2013-10-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193447 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Disable tmpnam_r interceptor on Mac.Evgeniy Stepanov2013-10-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193417 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept tmpnam, tmpnam_r, tempnam.Evgeniy Stepanov2013-10-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193415 91177308-0d34-0410-b5e6-96231b3b80d8
* [msandr] Add NATIVE_EXEC macro for building client for running in DynamoRIO ↵Evgeniy Stepanov2013-10-25
| | | | | | | | | | | | | | hybrid mode only. When running application in DynamoRIO hybrid mode only, only uninstrumented modules will run in DynamoRIO and be instrumented by the client, so we do not need module table in MSanDR. Patch by Qin Zhao. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193411 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Remove pthread_attr_getstackaddr interceptor.Evgeniy Stepanov2013-10-25
| | | | | | | The function is deprecated. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193409 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Fix Android build.Evgeniy Stepanov2013-10-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193408 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Zerofill initstate_r buffer in random_r test.Evgeniy Stepanov2013-10-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193406 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept pthread_attr_get*.Evgeniy Stepanov2013-10-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193405 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Separate access and origin blocks in msan reports with an extra ↵Evgeniy Stepanov2013-10-25
| | | | | | whiteline. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193401 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: do not crash when apparently bogus fd is passed to e.g. closeDmitry Vyukov2013-10-25
| | | | | | | | | | some tests test libc/filesystem error handling paths (e.g. close(INT_MAX)), currently such tests fail with this change they work as expected git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193400 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept random_r.Evgeniy Stepanov2013-10-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193396 91177308-0d34-0410-b5e6-96231b3b80d8
* Switch __ARM_ARCH_7S__ to __ARM_ARCH_EXT_IDIV__ for use of sdiv/udiv assembly.Stephen Hines2013-10-25
| | | | | | | | | __ARM_ARCH_EXT_IDIV__ is the define that ARM is using to indicate the presence of hardware integer divide (sdiv/udiv). Previously, this code was only being invoked for processors marked 7S. We now can correctly generate hardware divides on cortex-a15 devices. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193392 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept shmctl.Evgeniy Stepanov2013-10-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193348 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Unpoison errno in common interceptors.Evgeniy Stepanov2013-10-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193343 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Fix invalid origin copying.Evgeniy Stepanov2013-10-24
| | | | | | | | | | | | | | | Origin copying may destroy valid origin info. This is caused by __msan_copy_origin widening the address range to the nearest 4-byte aligned addresses both on the left and on the right. If the target buffer is uninitialized and the source is fully initialized, this will result in overriding valid origin of target buffer with stale (possibly 0) origin of the source buffer. With this change the widened origin is copied only if corresponding shadow values are non zero. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193338 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Change wording in the invalid origin message.Evgeniy Stepanov2013-10-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193335 91177308-0d34-0410-b5e6-96231b3b80d8
* Introduce an operator new for LowLevelAllocator, and convert most users to it.Peter Collingbourne2013-10-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193308 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] ASan can be combined with LSan and UBSan, so export symbol from them ↵Alexey Samsonov2013-10-23
| | | | | | as well. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193245 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Fix OSX build.Evgeniy Stepanov2013-10-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193244 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept ether_* functions.Evgeniy Stepanov2013-10-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193241 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: parse symbolize/external_symbolizer_path common flagsDmitry Vyukov2013-10-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193236 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix linux syscall hooksDmitry Vyukov2013-10-23
| | | | | | | | the file references non-existent arguments and breaks build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193234 91177308-0d34-0410-b5e6-96231b3b80d8
* Continue to keep 'SUMMARY: ' prefix in lsan. Whoops!Nick Lewycky2013-10-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193232 91177308-0d34-0410-b5e6-96231b3b80d8
* Hoist the addition of the prefix "SUMMARY: " fromNick Lewycky2013-10-23
| | | | | | | __sanitizer_report_error_summary to ReportErrorSummary. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193231 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure ASan always emits an error summary if it reports an error.Nick Lewycky2013-10-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193229 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Drain allocator cache when leaving thread.Evgeniy Stepanov2013-10-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193163 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept initgroups.Evgeniy Stepanov2013-10-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193158 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] When detect_leaks=false, be completely silent.Sergey Matveev2013-10-21
| | | | | | | | In particular, don't make a fuss if we're passed a malformed suppressions file, or if we have trouble identifying ld.so. Also, make LSan interface functions no-ops in this case. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193108 91177308-0d34-0410-b5e6-96231b3b80d8
* Use internal_memset to initialize this variable.Peter Collingbourne2013-10-21
| | | | | | | Otherwise, the compiler may use memset in non-optimized builds, which is forbidden in the nolibc part of the runtime. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193098 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] count the size of QuarantineBatch in the total Quarantine size; make ↵Kostya Serebryany2013-10-21
| | | | | | QuarantineBatch fit into 8K, fix a MSVC compile warning git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193072 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix strerror interceptor (eliminate false positives)Dmitry Vyukov2013-10-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193070 91177308-0d34-0410-b5e6-96231b3b80d8
* Runtime support for the indirect function call checker.Peter Collingbourne2013-10-20
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1339 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193060 91177308-0d34-0410-b5e6-96231b3b80d8
* [ubsan] Introduce %clangxx substitution for all C++ tests.Peter Collingbourne2013-10-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193059 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] fix stack trace printing on MacKostya Serebryany2013-10-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192990 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] allocate AsanThreadContext using LowLevelAllocator instead of mmap to ↵Kostya Serebryany2013-10-18
| | | | | | save space git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192980 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] reduce the size of AsanThreadContext by storing the stack trace in ↵Kostya Serebryany2013-10-18
| | | | | | the stack depot git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192979 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] fix compilation of sanitizer_platform_limits_posix.cc on OSX.Alexander Potapenko2013-10-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192975 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] fix compilation of atexit_stats.cc on OSXAlexander Potapenko2013-10-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192973 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Fix OSX build some more.Evgeniy Stepanov2013-10-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192967 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Fix OSX build.Evgeniy Stepanov2013-10-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192966 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Move statfs/fstatfs to common interceptors and add statvfs/fstatvfs.Evgeniy Stepanov2013-10-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192965 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] fix a test on MacKostya Serebryany2013-10-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192960 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept getmntent, getmntent_r.Evgeniy Stepanov2013-10-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192959 91177308-0d34-0410-b5e6-96231b3b80d8