summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* [msan] Sanity check for non-PIE.HEADmasterEvgeniy Stepanov2013-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194370 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Bypass pthread_attr_getdetachstate interceptor in compiler_rt code.Evgeniy Stepanov2013-11-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194369 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove a FIXME now that I can't reproduce the problemTimur Iskhodzhanov2013-11-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194331 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizers] Share some stack walking code between Windows and LinuxTimur Iskhodzhanov2013-11-09
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D2126 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194326 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Add CMake configs for libclang_rt.asan_iossim_dynamic.dylib Alexander Potapenko2013-11-07
| | | | | | | | | | | CMake changes to build the ASan runtime for the iOS simulator. This is a universal library targeting the same architectures as the OSX ASan runtime does, thus the iossim version can't live in the same universal libclang_rt.asan_osx_dynamic.dylib The difference between the OSX and iossim builds is in the -mios-simulator-version-min and -ios_simulator_version_min flags that tell Clang to compile and link iossim code. The iossim runtime can only be built on a machine with both Xcode and the iOS Simulator SDK installed. If xcodebuild -version -sdk iphonesimulator Path returns a nonempty path, it is used when compiling and linking the iossim runtime. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194199 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Make StackTrace::Unwind the only public way to unwind a stack trace.Alexey Samsonov2013-11-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194196 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Presumable fix stack trace unwinding on WindowsAlexey Samsonov2013-11-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194195 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Call Windows unwinder 'slow' and share StackTrace::Unwind across ↵Alexey Samsonov2013-11-07
| | | | | | all platforms. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194193 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] attempting to fix x32 build (see ↵Kostya Serebryany2013-11-06
| | | | | | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59018) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194155 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Use OS-specific matches in the malloc_context_size.cc lit test.Alexander Potapenko2013-11-06
| | | | | | | The top stack frames for operator new and operator delete are different on Linux and Darwin. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194150 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Disable back init-order checker. Make strict_init_order imply ↵Alexey Samsonov2013-11-06
| | | | | | check_initialization_order git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194125 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Make sure slow stack unwinder doesn't return empty stacks.Alexey Samsonov2013-11-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194107 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Fix a very unfortunate typo in origin copying.Evgeniy Stepanov2013-11-05
| | | | | | | It was causing randomly missing origins. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194036 91177308-0d34-0410-b5e6-96231b3b80d8
* Push back various changes for building Apple's compiler-rt dylib.Bob Wilson2013-11-03
| | | | | | These changes had accumulated internally at Apple for no good reason. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193944 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Intercept strptime.Evgeniy Stepanov2013-11-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193903 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Intercept memccpy.Evgeniy Stepanov2013-11-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193897 91177308-0d34-0410-b5e6-96231b3b80d8
* tsna: do not call user code from within runtime (from fflush)Dmitry Vyukov2013-11-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193880 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Fix Go buildAlexey Samsonov2013-11-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193873 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Switch to an older version of struct iocb that is found in the ↵Evgeniy Stepanov2013-11-01
| | | | | | | | | latest Android NDK. They are binary compatible, and we don't use any of the new fields anyway. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193870 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Kill use_stack_depot runtime flag and stack trace compression routines.Alexey Samsonov2013-11-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193868 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Unify summary reporting across all sanitizers.Alexey Samsonov2013-11-01
| | | | | | | | | | | This change unifies the summary printing across sanitizers: now each tool uses specific version of ReportErrorSummary() method, which deals with symbolization of the top frame and formatting a summary message. This change modifies the summary line for ASan+LSan mode: now the summary mentions "AddressSanitizer" instead of "LeakSanitizer". git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193864 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Check that address is an app region before printing shadow.Evgeniy Stepanov2013-11-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193863 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Enhance io_submti syscall handler.Evgeniy Stepanov2013-11-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193848 91177308-0d34-0410-b5e6-96231b3b80d8
* Consistently use StackTrace::PrintStack in ASan, LSan and MSanAlexey Samsonov2013-11-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193834 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Add Symbolizer::AddHooks() and use it in TSan and MSan.Alexey Samsonov2013-10-31
| | | | | | | | | | | | | | | | | | | | | Summary: TSan and MSan need to know if interceptor was called by the user code or by the symbolizer and use pre- and post-symbolization hooks for that. Make Symbolizer class responsible for calling these hooks instead. This would ensure the hooks are only called when necessary (during in-process symbolization, they are not needed for out-of-process) and save specific sanitizers from tracing all places in the code where symbolization will be performed. Reviewers: eugenis, dvyukov Reviewed By: eugenis CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2067 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193807 91177308-0d34-0410-b5e6-96231b3b80d8
* [libsanitizer] Define SANITIZER_IOS when building for iOS or iOS simulator.Alexander Potapenko2013-10-31
| | | | | | | | | Do not use struct stat64 and struct statfs64 when building for iOS, where __DARWIN_ONLY_64_BIT_INO_T is set to 1. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193775 91177308-0d34-0410-b5e6-96231b3b80d8
* [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