summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* [msan] Intercept dlerror.Evgeniy Stepanov2013-10-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193760 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Make asan_symbolize.py fall back to ASAN_SYMBOLIZER_PATH (which is ↵Alexander Potapenko2013-10-31
| | | | | | used when ASAN_OPTIONS=symbolize=1) if LLVM_SYMBOLIZER_PATH is empty. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193758 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Disable mlock/mlockall to work around a linux kernel bug.Evgeniy Stepanov2013-10-31
| | | | | | | The same logic is present in ASan and TSan. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193755 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept getline, getdelim.Evgeniy Stepanov2013-10-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193730 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Turn on (non-strict) initialization order checker by default for all ↵Alexey Samsonov2013-10-31
| | | | | | ASan users git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193729 91177308-0d34-0410-b5e6-96231b3b80d8
* [msandr] Add check-before-write optimization.Evgeniy Stepanov2013-10-30
| | | | | | | | | Replace blind store with check-before-store to avoid unnecessary memory stores. Patch by Qin Zhao. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193703 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Update comment in sanitizer_symbolizer.hAlexey Samsonov2013-10-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193700 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Use SpinMutex for Symbolizer initialization (per dvyukov's ↵Alexey Samsonov2013-10-30
| | | | | | suggestion) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193697 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Fix syscall hooks build on Android.Evgeniy Stepanov2013-10-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193670 91177308-0d34-0410-b5e6-96231b3b80d8
* [santiizer] Disable sincos interceptor in OSX.Evgeniy Stepanov2013-10-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193667 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept drand48_r, lrand48_r.Evgeniy Stepanov2013-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193655 91177308-0d34-0410-b5e6-96231b3b80d8
* [msandr] Remove use of std::set in msandr client to avoid reentrancy issues.Evgeniy Stepanov2013-10-29
| | | | | | | Patch by Qin Zhao. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193654 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Maybe fix test failures on lld bots.Evgeniy Stepanov2013-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193647 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept sincos, remquo, lgamma, lgamma_r.Evgeniy Stepanov2013-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193645 91177308-0d34-0410-b5e6-96231b3b80d8
* [msandr] Add support for standalone test.Evgeniy Stepanov2013-10-29
| | | | | | | | | Add macro MSANDR_STANDALONE_TEST for standalone test without msan executables. Patch by Qin Zhao. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193643 91177308-0d34-0410-b5e6-96231b3b80d8
* [tsan] Fix unused variable warnings.Evgeniy Stepanov2013-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193639 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Fix build.Evgeniy Stepanov2013-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193635 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Fix build warnings.Evgeniy Stepanov2013-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193634 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Ptrace syscall handler.Evgeniy Stepanov2013-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193633 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] increase the max malloc size from 8Gb to 64GbKostya Serebryany2013-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193615 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan/asan: support pthread_setname_np to set thread namesDmitry Vyukov2013-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193602 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Simplify StackTrace::PrintStack interface: prefer common flags ↵Alexey Samsonov2013-10-29
| | | | | | to turn on/off the symbolization git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193587 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Intercept shmat.Evgeniy Stepanov2013-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193581 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Fix a typo and enable poison_in_free flag.Evgeniy Stepanov2013-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193529 91177308-0d34-0410-b5e6-96231b3b80d8
* [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