Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [sanitizer] Intercept ether_* functions. | Evgeniy Stepanov | 2013-10-23 | 2 | -0/+14 | |
| | | | | llvm-svn: 193241 | |||||
* | [sanitizer] Intercept initgroups. | Evgeniy Stepanov | 2013-10-22 | 2 | -0/+2 | |
| | | | | llvm-svn: 193158 | |||||
* | [sanitizer] Move statfs/fstatfs to common interceptors and add statvfs/fstatvfs. | Evgeniy Stepanov | 2013-10-18 | 2 | -0/+16 | |
| | | | | llvm-svn: 192965 | |||||
* | [sanitizer] Intercept getmntent, getmntent_r. | Evgeniy Stepanov | 2013-10-18 | 2 | -0/+4 | |
| | | | | llvm-svn: 192959 | |||||
* | [Sanitizer] Move pthread_cond_signal and pthread_cond_broadcast to common ↵ | Alexey Samsonov | 2013-10-17 | 1 | -16/+0 | |
| | | | | | | interceptors llvm-svn: 192876 | |||||
* | tsan: merge 2 similar tests into 1 | Dmitry Vyukov | 2013-10-17 | 3 | -40/+8 | |
| | | | | llvm-svn: 192874 | |||||
* | tsan: add a test for __tsan_default_options() | Dmitry Vyukov | 2013-10-17 | 2 | -8/+32 | |
| | | | | llvm-svn: 192873 | |||||
* | tsan: revert variable name change in test | Dmitry Vyukov | 2013-10-16 | 1 | -5/+5 | |
| | | | | | | It works as is with new llvm-symbolizer. llvm-svn: 192798 | |||||
* | tsan: move shadow stack from thread descriptors to fixed addresses | Dmitry Vyukov | 2013-10-16 | 12 | -33/+132 | |
| | | | | | | | | This allows to increase max shadow stack size to 64K, and reliably catch shadow stack overflows instead of silently corrupting memory. llvm-svn: 192797 | |||||
* | [TSan] Extend test for reporting globals with races on them | Alexey Samsonov | 2013-10-16 | 2 | -4/+21 | |
| | | | | llvm-svn: 192782 | |||||
* | Make some pthread_mutex_* and pthread_cond_* interceptors common. | Alexey Samsonov | 2013-10-16 | 1 | -36/+6 | |
| | | | | | | | | | | | | Reviewers: eugenis, dvyukov Reviewed By: dvyukov CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1937 llvm-svn: 192774 | |||||
* | tsan: introduce __tsan_default_options() function | Dmitry Vyukov | 2013-10-15 | 1 | -24/+41 | |
| | | | | | | | The function allows to statically setup default values for flags. The interafece matches what asan/msan provide. llvm-svn: 192715 | |||||
* | tsan: use verbosity flag in sanitizer_common code directly | Dmitry Vyukov | 2013-10-15 | 1 | -7/+1 | |
| | | | | | | now it's available from common_flags() llvm-svn: 192705 | |||||
* | tsan: move verbosity flag to CommonFlags | Dmitry Vyukov | 2013-10-15 | 2 | -8/+7 | |
| | | | | llvm-svn: 192701 | |||||
* | tsan: fix Go build | Dmitry Vyukov | 2013-10-15 | 1 | -0/+8 | |
| | | | | llvm-svn: 192696 | |||||
* | tsan: do not build llvm from scratch on each presubmit | Dmitry Vyukov | 2013-10-15 | 1 | -3/+7 | |
| | | | | llvm-svn: 192694 | |||||
* | tsan: use sanitizer::CommonFlags in tsan | Dmitry Vyukov | 2013-10-15 | 4 | -28/+11 | |
| | | | | llvm-svn: 192692 | |||||
* | tsan: resolve symlinks for called_from_lib suppressions | Dmitry Vyukov | 2013-10-15 | 1 | -2/+2 | |
| | | | | llvm-svn: 192688 | |||||
* | tsan: allow to override OnFinalize() in front-ends that does not support ↵ | Dmitry Vyukov | 2013-10-14 | 1 | -1/+5 | |
| | | | | | | weak functions (Go) llvm-svn: 192569 | |||||
* | tsan: catch more races on file descriptors | Dmitry Vyukov | 2013-10-11 | 2 | -2/+12 | |
| | | | | llvm-svn: 192452 | |||||
* | tsan: fix epoll_ctl interceptor | Dmitry Vyukov | 2013-10-11 | 1 | -6/+8 | |
| | | | | | | | | | | | | | | | | | | Currently data-race-test unittests fail with the following false positive: WARNING: ThreadSanitizer: data race (pid=20365) Write of size 8 at 0x7da000008050 by thread T54: #0 close tsan_interceptors.cc:1483 (racecheck_unittest-linux-amd64-O0+0x0000000eb34a) #1 NegativeTests_epoll::Worker2() unittest/posix_tests.cc:1148 (racecheck_unittest-linux-amd64-O0+0x0000000cc6b1) #2 MyThread::ThreadBody(MyThread*) unittest/./thread_wrappers_pthread.h:367 (racecheck_unittest-linux-amd64-O0+0x000000097500) Previous read of size 8 at 0x7da000008050 by thread T49: #0 epoll_ctl tsan_interceptors.cc:1646 (racecheck_unittest-linux-amd64-O0+0x0000000e9fee) #1 NegativeTests_epoll::Worker1() unittest/posix_tests.cc:1140 (racecheck_unittest-linux-amd64-O0+0x0000000cc5b5) #2 MyThread::ThreadBody(MyThread*) unittest/./thread_wrappers_pthread.h:367 (racecheck_unittest-linux-amd64-O0+0x000000097500) llvm-svn: 192448 | |||||
* | [sanitizer] Move the PTHREAD_DESTRUCTOR_ITERATIONS constant to ↵ | Sergey Matveev | 2013-10-11 | 1 | -1/+2 | |
| | | | | | | | | sanitizer_linux.h. Add a test. llvm-svn: 192442 | |||||
* | tsan: minor refactoring | Dmitry Vyukov | 2013-10-10 | 1 | -6/+1 | |
| | | | | | | Replace duplicate code snippet with function. llvm-svn: 192357 | |||||
* | tsan: add annotations to ignore synchronization operations | Dmitry Vyukov | 2013-10-10 | 9 | -64/+161 | |
| | | | | | | | | The annotations are AnnotateIgnoreSyncBegin/End, may be useful to ignore some infrastructure synchronization that introduces lots of false negatives. llvm-svn: 192355 | |||||
* | [TSan] Automatically pick up llvm-symbolizer from PATH, as we do in another ↵ | Alexey Samsonov | 2013-10-04 | 3 | -16/+7 | |
| | | | | | | sanitizers llvm-svn: 191954 | |||||
* | [TSan] Add ValgrindSlowdown to the list of exported symbols | Alexey Samsonov | 2013-10-04 | 1 | -0/+1 | |
| | | | | llvm-svn: 191952 | |||||
* | tsan: fix a bug in pthread_once when called from an ignored library | Dmitry Vyukov | 2013-10-04 | 1 | -3/+7 | |
| | | | | | | It must set thr->in_rtl = 0 before executing user callback. llvm-svn: 191946 | |||||
* | Refactor the usage of strip_path_prefix option and make it more consistent ↵ | Alexey Samsonov | 2013-10-04 | 1 | -0/+1 | |
| | | | | | | across sanitizers llvm-svn: 191943 | |||||
* | tsan: add memory_limit_mb flag | Dmitry Vyukov | 2013-10-03 | 5 | -2/+41 | |
| | | | | | | | The flag allows to bound maximum process memory consumption (best effort). If RSS reaches memory_limit_mb, tsan flushes all shadow memory. llvm-svn: 191913 | |||||
* | asan/msan/tsan: move _exit interceptor to common interceptors | Dmitry Vyukov | 2013-10-03 | 1 | -10/+9 | |
| | | | | llvm-svn: 191903 | |||||
* | tsan: include lsan into presubmit check | Dmitry Vyukov | 2013-10-03 | 1 | -0/+1 | |
| | | | | llvm-svn: 191902 | |||||
* | tsan: intercept _exit so that we can override exit status | Dmitry Vyukov | 2013-10-03 | 4 | -10/+25 | |
| | | | | llvm-svn: 191898 | |||||
* | tsan: ignore interceptors coming from specified libraries | Dmitry Vyukov | 2013-10-03 | 20 | -58/+247 | |
| | | | | | | | | | | | | | LibIgnore allows to ignore all interceptors called from a particular set of dynamic libraries. LibIgnore remembers all "called_from_lib" suppressions from the provided SuppressionContext; finds code ranges for the libraries; and checks whether the provided PC value belongs to the code ranges. Also make malloc and friends interceptors use SCOPED_INTERCEPTOR_RAW instead of SCOPED_TSAN_INTERCEPTOR, because if they are called from an ignored lib, then must call our internal allocator instead of libc malloc. llvm-svn: 191897 | |||||
* | tsan: use ninja instead of make (faster and less output) | Dmitry Vyukov | 2013-10-02 | 1 | -6/+6 | |
| | | | | llvm-svn: 191819 | |||||
* | [sanitizer] Intercept backtrace, backtrace_symbols. | Evgeniy Stepanov | 2013-09-27 | 2 | -0/+4 | |
| | | | | llvm-svn: 191516 | |||||
* | tsan: support allocator_may_return_null flag | Dmitry Vyukov | 2013-09-27 | 3 | -2/+6 | |
| | | | | | | Fixes https://code.google.com/p/thread-sanitizer/issues/detail?id=29 llvm-svn: 191482 | |||||
* | [sanitizer] A bunch of libc interceptors. | Evgeniy Stepanov | 2013-09-25 | 3 | -12/+23 | |
| | | | | | | | | | | | | sigwait sigwaitinfo sigtimedwait sigemptyset sigfillset sigpending sigprocmask llvm-svn: 191374 | |||||
* | [sanitizer] Intercept wordexp. | Evgeniy Stepanov | 2013-09-24 | 2 | -0/+2 | |
| | | | | llvm-svn: 191305 | |||||
* | tsan: remove unneeded ___chkstk_ms function from Go runtime | Dmitry Vyukov | 2013-09-22 | 2 | -36/+2 | |
| | | | | llvm-svn: 191161 | |||||
* | tsan: allow symbolization of non-native PCs, e.g. coming from JIT/JAVA/etc | Dmitry Vyukov | 2013-09-22 | 1 | -0/+49 | |
| | | | | llvm-svn: 191157 | |||||
* | tsan: ignore malloc/free/strdup when called from libjvm | Dmitry Vyukov | 2013-09-21 | 3 | -7/+27 | |
| | | | | llvm-svn: 191153 | |||||
* | tsan: ignore all interceptors coming directly from JVM | Dmitry Vyukov | 2013-09-21 | 6 | -2/+38 | |
| | | | | llvm-svn: 191152 | |||||
* | tsan: improve diagnostics for incorrect usages of mutexes | Dmitry Vyukov | 2013-09-21 | 1 | -7/+10 | |
| | | | | llvm-svn: 191151 | |||||
* | tsan: intercept fork syscall | Dmitry Vyukov | 2013-09-21 | 1 | -18/+44 | |
| | | | | llvm-svn: 191144 | |||||
* | tsan: intercept close syscall | Dmitry Vyukov | 2013-09-21 | 1 | -0/+15 | |
| | | | | llvm-svn: 191129 | |||||
* | tsan: handle memory read/write in syscalls | Dmitry Vyukov | 2013-09-20 | 1 | -3/+13 | |
| | | | | llvm-svn: 191074 | |||||
* | tsan: allow to ignore memory accesses in malloc and free | Dmitry Vyukov | 2013-09-20 | 3 | -4/+83 | |
| | | | | llvm-svn: 191072 | |||||
* | tsan: do not crash when user intercepts fopen() | Dmitry Vyukov | 2013-09-20 | 1 | -0/+4 | |
| | | | | llvm-svn: 191066 | |||||
* | tsan: fix linking of tsan runtime into dynamic libraries | Dmitry Vyukov | 2013-09-19 | 3 | -45/+36 | |
| | | | | | | | versioned symbols can not be linked into dynamic library w/o linker script also simplifies code as side effect llvm-svn: 191056 | |||||
* | [TSan] Fix -Wempty-body warning | Alexey Samsonov | 2013-09-19 | 1 | -4/+8 | |
| | | | | llvm-svn: 190993 |