summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
...
* [ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of ↵Alexey Samsonov2012-08-22
| | | | | | __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162358 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] make ASan malloc/free hooks weak interface functions, overridable by ↵Alexey Samsonov2012-08-22
| | | | | | user. Now the user can control malloc/free hooks without recompiling ASan runtime git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162355 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] fix CMake build: make sure that all ASan runtimes are built at ↵Alexey Samsonov2012-08-22
| | | | | | correct directory git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162353 91177308-0d34-0410-b5e6-96231b3b80d8
* [TSan] switch tsan to using InternalScopedBuffer from sanitizer_commonAlexey Samsonov2012-08-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162351 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] fix mac buildKostya Serebryany2012-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162279 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] run-time part of the initialization order checker. Patch by Reid ↵Kostya Serebryany2012-08-21
| | | | | | Watson with some bits from kcc. The sub-pass is off by default for now. On simple tests it works fine. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162278 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] implement internal_strcspnAlexey Samsonov2012-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162272 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] update asan-rt to match the interface change in LLVm (r162268)Kostya Serebryany2012-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162269 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] define InternalScopedBuffer to replace large arrays on stack. It ↵Alexey Samsonov2012-08-21
| | | | | | is defined analogous to similar class in tsan and should replace it. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162262 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] fix lintKostya Serebryany2012-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162258 91177308-0d34-0410-b5e6-96231b3b80d8
* Dynamic interceptors for dispatch_async and dispatch_after.Alexander Potapenko2012-08-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162202 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor refactoring: reduce code duplication by introducing a macro for ↵Alexander Potapenko2012-08-20
| | | | | | dispatch_sync_f, dispatch_async_f, dispatch_barrier_async_f bodies. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162199 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a leftover #if defined(DYNAMIC_MAC_WRAPPERS).Alexander Potapenko2012-08-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162197 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: proper handling of linker initialized mutexesDmitry Vyukov2012-08-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162169 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: Non-executable stack for hand-coded assemblyDmitry Vyukov2012-08-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162112 91177308-0d34-0410-b5e6-96231b3b80d8
* Intercept siglongjmp and _longjmp under "#if ASAN_INTERCEPT_*"Alexander Potapenko2012-08-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162103 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix lint warnings.Alexander Potapenko2012-08-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162092 91177308-0d34-0410-b5e6-96231b3b80d8
* Commit the source and CMake changes that will allow to build ASan runtimeAlexander Potapenko2012-08-17
| | | | | | | | | as a shared library on Mac OS. This will provide an alternative to mach_override. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162091 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: improve Go report format + fix buildDmitry Vyukov2012-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162042 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: add flag to disable reporting of destruction of locked mutexes (some ↵Dmitry Vyukov2012-08-16
| | | | | | programs use that on a regular basis) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162024 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: better diagnostics for destroy of a locked mutex + a testDmitry Vyukov2012-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162022 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: support for linker initializer mutexes with static storage durationDmitry Vyukov2012-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162021 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix COMPAT shadow mapping once againDmitry Vyukov2012-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162020 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: implement RWLOCK annotationsDmitry Vyukov2012-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162019 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix COMPAT shadow mapping for new memory allocatorDmitry Vyukov2012-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162018 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: refactor cur_thread() -> thrDmitry Vyukov2012-08-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162017 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: store sync objects in memory block headers + delete them when the ↵Dmitry Vyukov2012-08-15
| | | | | | block is freed git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161959 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: provide function that imitates write to a region but does not detect racesDmitry Vyukov2012-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161957 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the extra semicolon reported by the buildbot.Alexander Potapenko2012-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161954 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: switch to new allocatorDmitry Vyukov2012-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161953 91177308-0d34-0410-b5e6-96231b3b80d8
* Introduce asan_intercepted_functions.h which contains the declarations ↵Alexander Potapenko2012-08-15
| | | | | | | | | wrapped functions and their wrappers. Those declarations are going to be shared between asan_interceptors.cc and the dynamic runtime library on Mac OS. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161952 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] lit tests: use nm instead of llvm-nm, until llvm-nm becomes usable on ↵Alexey Samsonov2012-08-15
| | | | | | Mac. Port output test change in r161948 to lit git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161951 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: add some more tests for memory allocatorDmitry Vyukov2012-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161950 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix several integer overflowsDmitry Vyukov2012-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161949 91177308-0d34-0410-b5e6-96231b3b80d8
* Check for filenames and numbers to detect possible problems with ↵Alexander Potapenko2012-08-15
| | | | | | asan_symbolize.py on -fPIE binaries. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161948 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass offset of the frame address within the binary to addr2line instead of ↵Alexander Potapenko2012-08-15
| | | | | | | | | the absolute address. Fixes the problem with -PIE binaries. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161947 91177308-0d34-0410-b5e6-96231b3b80d8
* Patch the frame address regardless of the frame number.Alexander Potapenko2012-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161946 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the prototype of __CFInitialize to asan_mac.h so that ↵Alexander Potapenko2012-08-15
| | | | | | asan_malloc_mac.cc may use it in the dynamic library mode. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161945 91177308-0d34-0410-b5e6-96231b3b80d8
* Use SANITIZER_INTERFACE_ATTRIBUTE instead of ↵Alexander Potapenko2012-08-15
| | | | | | | | | __attribute__((visibility("default"))) Export CheckFailed, asan_malloc, asan_free, asan_memalign, AsanStackTrace::CompressStack, AsanStackTrace::UncompressStack from the dynamic runtime library. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161943 91177308-0d34-0410-b5e6-96231b3b80d8
* Make __asan::asan_{malloc,free,memalign} globally visible, so that the ↵Alexander Potapenko2012-08-15
| | | | | | dynamic version of the runtime will export them. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161942 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Port (the last one) tricky interface_test to lit, and a *huge* chunks ↵Alexey Samsonov2012-08-15
| | | | | | of boilerplate to run tests for 32/64 bits and all optimization levels. Alas, lit doesn't support for loops in RUN-lines... git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161941 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not attempt to intercept mlock and friends on Windows.Alexander Potapenko2012-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161939 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the common interception machinery for mlock/munlock/mlockall/munlockall.Alexander Potapenko2012-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161938 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] use clangxx_asan instead of clang_asan for C++ lit testsAlexey Samsonov2012-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161936 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] port remaining output and feature tests to lit. TODO: we should in ↵Alexey Samsonov2012-08-15
| | | | | | fact run most of the tests for 32/64 bits and for all optimization levels git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161935 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] port interception and shared library tests to litAlexey Samsonov2012-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161933 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] move declaration of __asan_default_options to interface headerAlexey Samsonov2012-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161932 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] better diagnostics for mmap failureKostya Serebryany2012-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161874 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] make sure __asan_default_options symbol is exportedAlexey Samsonov2012-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161873 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] make sure __asan_default_options gets default visibility, port ↵Alexey Samsonov2012-08-14
| | | | | | corresponding test to lit git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161869 91177308-0d34-0410-b5e6-96231b3b80d8