summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib
Commit message (Collapse)AuthorAgeFilesLines
* [sanitizer] Intercept strptime.Evgeniy Stepanov2013-11-026-3/+37
| | | | llvm-svn: 193903
* [msan] Intercept memccpy.Evgeniy Stepanov2013-11-012-0/+58
| | | | llvm-svn: 193897
* tsna: do not call user code from within runtime (from fflush)Dmitry Vyukov2013-11-011-1/+7
| | | | llvm-svn: 193880
* [Sanitizer] Fix Go buildAlexey Samsonov2013-11-011-0/+2
| | | | llvm-svn: 193873
* [sanitizer] Switch to an older version of struct iocb that is found in the ↵Evgeniy Stepanov2013-11-012-4/+1
| | | | | | | | latest Android NDK. They are binary compatible, and we don't use any of the new fields anyway. llvm-svn: 193870
* [ASan] Kill use_stack_depot runtime flag and stack trace compression routines.Alexey Samsonov2013-11-016-280/+4
| | | | llvm-svn: 193868
* [Sanitizer] Unify summary reporting across all sanitizers.Alexey Samsonov2013-11-0127-66/+69
| | | | | | | | | | 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". llvm-svn: 193864
* [msan] Check that address is an app region before printing shadow.Evgeniy Stepanov2013-11-011-0/+4
| | | | llvm-svn: 193863
* [sanitizer] Enhance io_submti syscall handler.Evgeniy Stepanov2013-11-015-22/+88
| | | | llvm-svn: 193848
* Consistently use StackTrace::PrintStack in ASan, LSan and MSanAlexey Samsonov2013-11-015-15/+11
| | | | llvm-svn: 193834
* [Sanitizer] Add Symbolizer::AddHooks() and use it in TSan and MSan.Alexey Samsonov2013-10-318-22/+66
| | | | | | | | | | | | | | | | | | | | | 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 llvm-svn: 193807
* [libsanitizer] Define SANITIZER_IOS when building for iOS or iOS simulator.Alexander Potapenko2013-10-314-3/+21
| | | | | | Do not use struct stat64 and struct statfs64 when building for iOS, where __DARWIN_ONLY_64_BIT_INO_T is set to 1. llvm-svn: 193775
* [msan] Intercept dlerror.Evgeniy Stepanov2013-10-312-0/+22
| | | | llvm-svn: 193760
* [ASan] Make asan_symbolize.py fall back to ASAN_SYMBOLIZER_PATH (which is ↵Alexander Potapenko2013-10-311-2/+4
| | | | | | used when ASAN_OPTIONS=symbolize=1) if LLVM_SYMBOLIZER_PATH is empty. llvm-svn: 193758
* [msan] Disable mlock/mlockall to work around a linux kernel bug.Evgeniy Stepanov2013-10-312-0/+36
| | | | | | The same logic is present in ASan and TSan. llvm-svn: 193755
* [sanitizer] Intercept getline, getdelim.Evgeniy Stepanov2013-10-316-0/+71
| | | | llvm-svn: 193730
* [ASan] Turn on (non-strict) initialization order checker by default for all ↵Alexey Samsonov2013-10-311-1/+1
| | | | | | ASan users llvm-svn: 193729
* [msandr] Add check-before-write optimization.Evgeniy Stepanov2013-10-301-7/+21
| | | | | | | | Replace blind store with check-before-store to avoid unnecessary memory stores. Patch by Qin Zhao. llvm-svn: 193703
* [Sanitizer] Update comment in sanitizer_symbolizer.hAlexey Samsonov2013-10-301-13/+7
| | | | llvm-svn: 193700
* [Sanitizer] Use SpinMutex for Symbolizer initialization (per dvyukov's ↵Alexey Samsonov2013-10-303-27/+19
| | | | | | suggestion) llvm-svn: 193697
* [asan] Fix syscall hooks build on Android.Evgeniy Stepanov2013-10-304-9/+23
| | | | llvm-svn: 193670
* [santiizer] Disable sincos interceptor in OSX.Evgeniy Stepanov2013-10-301-1/+1
| | | | llvm-svn: 193667
* [sanitizer] Intercept drand48_r, lrand48_r.Evgeniy Stepanov2013-10-295-0/+43
| | | | llvm-svn: 193655
* [msandr] Remove use of std::set in msandr client to avoid reentrancy issues.Evgeniy Stepanov2013-10-291-14/+8
| | | | | | Patch by Qin Zhao. llvm-svn: 193654
* [asan] Maybe fix test failures on lld bots.Evgeniy Stepanov2013-10-291-1/+1
| | | | llvm-svn: 193647
* [sanitizer] Intercept sincos, remquo, lgamma, lgamma_r.Evgeniy Stepanov2013-10-295-0/+234
| | | | llvm-svn: 193645
* [msandr] Add support for standalone test.Evgeniy Stepanov2013-10-292-10/+128
| | | | | | | | Add macro MSANDR_STANDALONE_TEST for standalone test without msan executables. Patch by Qin Zhao. llvm-svn: 193643
* [tsan] Fix unused variable warnings.Evgeniy Stepanov2013-10-291-4/+9
| | | | llvm-svn: 193639
* [asan] Fix build.Evgeniy Stepanov2013-10-291-4/+4
| | | | llvm-svn: 193635
* [sanitizer] Fix build warnings.Evgeniy Stepanov2013-10-291-0/+4
| | | | llvm-svn: 193634
* [sanitizer] Ptrace syscall handler.Evgeniy Stepanov2013-10-294-2/+49
| | | | llvm-svn: 193633
* [asan] increase the max malloc size from 8Gb to 64GbKostya Serebryany2013-10-291-1/+1
| | | | llvm-svn: 193615
* tsan/asan: support pthread_setname_np to set thread namesDmitry Vyukov2013-10-2910-4/+87
| | | | llvm-svn: 193602
* [Sanitizer] Simplify StackTrace::PrintStack interface: prefer common flags ↵Alexey Samsonov2013-10-296-9/+9
| | | | | | to turn on/off the symbolization llvm-svn: 193587
* [msan] Intercept shmat.Evgeniy Stepanov2013-10-296-5/+105
| | | | llvm-svn: 193581
* [msan] Fix a typo and enable poison_in_free flag.Evgeniy Stepanov2013-10-282-1/+17
| | | | llvm-svn: 193529
* [Sanitizer] Revert r193501 and properly fix r193448Alexey Samsonov2013-10-283-5/+4
| | | | llvm-svn: 193522
* asan/msan: separate different report blocks with new linesDmitry Vyukov2013-10-282-2/+4
| | | | | | this makes the reports consistent with tsan, and much more readable. llvm-svn: 193520
* tsan: start the background thread with signals blocked, otherwise it can ↵Dmitry Vyukov2013-10-281-0/+6
| | | | | | steal users signals llvm-svn: 193519
* Work around ASan/Win breakage by r193448Timur Iskhodzhanov2013-10-271-1/+3
| | | | llvm-svn: 193501
* [Sanitizer] Add pthread_attr_getaffinity_np to the list of versioned functionsAlexey Samsonov2013-10-261-1/+2
| | | | llvm-svn: 193470
* Add a CMake option COMPILER_RT_DEBUG for building runtimes with full debug info.Peter Collingbourne2013-10-255-0/+11
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1984 llvm-svn: 193449
* Overhaul the symbolizer interface.Peter Collingbourne2013-10-2521-104/+207
| | | | | | | | | | | | | | | | | | | | | | 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 llvm-svn: 193448
* Rename SpinMutex::AssertHeld to CheckLocked, for consistency with BlockingMutex.Peter Collingbourne2013-10-252-2/+2
| | | | llvm-svn: 193447
* [sanitizer] Disable tmpnam_r interceptor on Mac.Evgeniy Stepanov2013-10-251-1/+1
| | | | llvm-svn: 193417
* [sanitizer] Intercept tmpnam, tmpnam_r, tempnam.Evgeniy Stepanov2013-10-255-0/+73
| | | | llvm-svn: 193415
* [msandr] Add NATIVE_EXEC macro for building client for running in DynamoRIO ↵Evgeniy Stepanov2013-10-252-7/+26
| | | | | | | | | | | | 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. llvm-svn: 193411
* [sanitizer] Remove pthread_attr_getstackaddr interceptor.Evgeniy Stepanov2013-10-254-10/+0
| | | | | | The function is deprecated. llvm-svn: 193409
* [sanitizer] Fix Android build.Evgeniy Stepanov2013-10-251-3/+1
| | | | llvm-svn: 193408
* [msan] Zerofill initstate_r buffer in random_r test.Evgeniy Stepanov2013-10-251-1/+3
| | | | llvm-svn: 193406
OpenPOWER on IntegriCloud