Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | tsan: disable getaddrinfo() interceptor for tsan (causes recursion) | Dmitry Vyukov | 2013-06-10 | 1 | -0/+2 | |
| | | | | llvm-svn: 183649 | |||||
* | [sanitizer] Move TSan and MSan recvmsg interceptors to common. | Evgeniy Stepanov | 2013-05-29 | 1 | -10/+0 | |
| | | | | llvm-svn: 182843 | |||||
* | [sanitizer] Share TSan accept & accept4 interceptors with other sanitizers. | Evgeniy Stepanov | 2013-05-29 | 1 | -34/+18 | |
| | | | | llvm-svn: 182835 | |||||
* | [nolibc] Move all platforms to internal_getpid. | Peter Collingbourne | 2013-05-17 | 1 | -2/+2 | |
| | | | | | | | | | | Before, we had an unused internal_getpid function for Linux, and a platform-independent GetPid function. To make the naming conventions consistent for syscall-like functions, the GetPid syscall wrapper in sanitizer_posix.cc is moved to sanitizer_mac.cc, and GetPid is renamed to internal_getpid, bringing the Linux variant into use. llvm-svn: 182132 | |||||
* | tsan: disable getpwuid_r() and glob64() interceptors under tsan, because ↵ | Dmitry Vyukov | 2013-04-24 | 1 | -1/+8 | |
| | | | | | | they cause interceptor recursion if user intercepts fopen() llvm-svn: 180182 | |||||
* | [sanitizer] Add syscall handlers to ASan and TSan runtimes. | Evgeniy Stepanov | 2013-04-12 | 1 | -0/+7 | |
| | | | | | | ASan checks addressability of syscall arguments. TSan does nothing for now. llvm-svn: 179380 | |||||
* | Remove all 'static' before ALWAYS_INLINE | Timur Iskhodzhanov | 2013-03-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 178290 | |||||
* | tsan: intercept setjmp/longjmp | Dmitry Vyukov | 2013-03-25 | 1 | -8/+94 | |
| | | | | llvm-svn: 177858 | |||||
* | tsan: return 0 on malloc() failure instead of crashing | Dmitry Vyukov | 2013-03-22 | 1 | -1/+2 | |
| | | | | llvm-svn: 177741 | |||||
* | tsan: intercept abort() to fflush() libc streams | Dmitry Vyukov | 2013-03-21 | 1 | -0/+7 | |
| | | | | llvm-svn: 177637 | |||||
* | tsan: remove bogus CHECK | Dmitry Vyukov | 2013-03-21 | 1 | -1/+0 | |
| | | | | | | Asynchronous signal (e.g. SIGABRT) can be received with any value of in_rtl. llvm-svn: 177636 | |||||
* | tsan: add a comment about magic numbers | Dmitry Vyukov | 2013-03-21 | 1 | -0/+3 | |
| | | | | llvm-svn: 177628 | |||||
* | tsan: correct sizes of signal-related data structures | Dmitry Vyukov | 2013-03-20 | 1 | -4/+4 | |
| | | | | llvm-svn: 177526 | |||||
* | tsan: call fflush(0) on exit again | Dmitry Vyukov | 2013-03-20 | 1 | -9/+16 | |
| | | | | llvm-svn: 177522 | |||||
* | tsan: instruct malloc() to consume less memory | Dmitry Vyukov | 2013-03-19 | 1 | -0/+5 | |
| | | | | llvm-svn: 177393 | |||||
* | [sanitizer] Don't adjust the size of the user-allocated stack. | Evgeniy Stepanov | 2013-03-19 | 1 | -8/+9 | |
| | | | | | | Moved this code to sanitizer_common. llvm-svn: 177383 | |||||
* | tsan: touch less shadow memory during operations on big memory ranges | Dmitry Vyukov | 2013-03-18 | 1 | -2/+2 | |
| | | | | | | greatly reduces memory consumption llvm-svn: 177289 | |||||
* | tsan: mark shadow for thread stack as "don't need" when thread exits | Dmitry Vyukov | 2013-03-18 | 1 | -5/+1 | |
| | | | | llvm-svn: 177288 | |||||
* | tsan: madvise(DONTNEED) shadow memory on munmap() | Dmitry Vyukov | 2013-03-18 | 1 | -0/+5 | |
| | | | | llvm-svn: 177278 | |||||
* | [TSan] Switch TSan runtime to use ThreadRegistry class from sanitizer_common | Alexey Samsonov | 2013-03-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 177154 | |||||
* | [TSan] Add missing header inclusion | Alexey Samsonov | 2013-03-14 | 1 | -0/+1 | |
| | | | | llvm-svn: 177013 | |||||
* | [TSan] Use __sanitizer_pthread_attr_t in TSan | Alexey Samsonov | 2013-03-14 | 1 | -6/+1 | |
| | | | | llvm-svn: 177012 | |||||
* | [TSan] Add interceptor for malloc_usable_size() | Alexey Samsonov | 2013-02-25 | 1 | -0/+5 | |
| | | | | llvm-svn: 176013 | |||||
* | tsan: intercept libc __res_iclose | Dmitry Vyukov | 2013-02-07 | 1 | -0/+14 | |
| | | | | | | this is required to catch close of file descriptors created in getaddrinfo() llvm-svn: 174624 | |||||
* | tsan: intercept bind/listen | Dmitry Vyukov | 2013-02-04 | 1 | -0/+18 | |
| | | | | llvm-svn: 174311 | |||||
* | tsan: catch races on fd in more cases | Dmitry Vyukov | 2013-02-01 | 1 | -0/+12 | |
| | | | | llvm-svn: 174184 | |||||
* | tsan: detect races between plain and atomic memory accesses | Dmitry Vyukov | 2013-02-01 | 1 | -4/+4 | |
| | | | | llvm-svn: 174163 | |||||
* | [Sanitizer] update style checker script and fix namespace style warnings | Alexey Samsonov | 2013-01-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 173910 | |||||
* | tsan: support for inprocess symbolizer | Dmitry Vyukov | 2013-01-29 | 1 | -9/+54 | |
| | | | | llvm-svn: 173797 | |||||
* | tsan: add interceptor stubs for stat family of functions | Dmitry Vyukov | 2013-01-29 | 1 | -0/+72 | |
| | | | | llvm-svn: 173782 | |||||
* | [sanitizer] fix calloc overflow in asan/tsan/msan | Kostya Serebryany | 2013-01-25 | 1 | -0/+1 | |
| | | | | llvm-svn: 173441 | |||||
* | [sanitizer] lint | Evgeniy Stepanov | 2013-01-18 | 1 | -1/+2 | |
| | | | | llvm-svn: 172817 | |||||
* | [sanitizer] Rename 2 files *.h->*.inc as appropriate. | Evgeniy Stepanov | 2013-01-18 | 1 | -1/+1 | |
| | | | | | | Also add a missing include. llvm-svn: 172814 | |||||
* | [sanitizer] Common *scanf interceptors. | Evgeniy Stepanov | 2013-01-18 | 1 | -9/+24 | |
| | | | | llvm-svn: 172805 | |||||
* | [sanitizer] reapply r172719, r172721-172723, r172725, and also fix the ↵ | Kostya Serebryany | 2013-01-18 | 1 | -28/+2 | |
| | | | | | | warning on Mac. llvm-svn: 172791 | |||||
* | Revert r172719, r172721-172723, and r172725. | Jakob Stoklund Olesen | 2013-01-17 | 1 | -2/+28 | |
| | | | | | | | | | | | | | | | | | | The r172719 patch broke the build on Mac, the others depended on it. compiler-rt/lib/asan/asan_interceptors.cc:78:13: error: unused function 'SetThreadName' [-Werror,-Wunused-function] static void SetThreadName(const char *name) { Orignal headlines: [asan] attempting to fix the Mac build [asan] restructure read/pread/pread64 tests [sanitizer] move write/pwrite/pwrite64 interceptors to common [msan] start using common interceptors in msan [tsan] move prctl interceptor from asan to common_interceptors thus enabling it for tsan too llvm-svn: 172763 | |||||
* | [sanitizer] move write/pwrite/pwrite64 interceptors to common | Kostya Serebryany | 2013-01-17 | 1 | -27/+0 | |
| | | | | llvm-svn: 172722 | |||||
* | [tsan] move prctl interceptor from asan to common_interceptors thus enabling ↵ | Kostya Serebryany | 2013-01-17 | 1 | -1/+2 | |
| | | | | | | it for tsan too llvm-svn: 172719 | |||||
* | [tsan] add write_range/read_range hooks to common interceptors called from ↵ | Kostya Serebryany | 2013-01-17 | 1 | -2/+4 | |
| | | | | | | tsan (to find races on read/pread/etc) llvm-svn: 172714 | |||||
* | [sanitizer] a bit more unification for interceptors (merge ↵ | Kostya Serebryany | 2013-01-17 | 1 | -30/+10 | |
| | | | | | | read/pread/pread64 in asan and tsan) llvm-svn: 172713 | |||||
* | tsan: describe stack and TLS addresses | Dmitry Vyukov | 2013-01-14 | 1 | -0/+1 | |
| | | | | llvm-svn: 172393 | |||||
* | tsan: add check for invalid fd | Dmitry Vyukov | 2013-01-10 | 1 | -1/+2 | |
| | | | | llvm-svn: 172060 | |||||
* | tsan: detect races on fd passed to epoll_ctl | Dmitry Vyukov | 2013-01-09 | 1 | -0/+1 | |
| | | | | llvm-svn: 171981 | |||||
* | tsan: fix crash when user defines own fopen/fileno | Dmitry Vyukov | 2013-01-09 | 1 | -20/+20 | |
| | | | | llvm-svn: 171967 | |||||
* | tsan: fix crash when user defines own fopen/fileno | Dmitry Vyukov | 2013-01-09 | 1 | -5/+10 | |
| | | | | llvm-svn: 171958 | |||||
* | tsan: more defensive file descriptor verification | Dmitry Vyukov | 2012-12-24 | 1 | -25/+33 | |
| | | | | | | to prevent assertion failures on code like "write(-1, ...)" llvm-svn: 171030 | |||||
* | tsan: fix -Wgnu warnings | Dmitry Vyukov | 2012-12-19 | 1 | -6/+6 | |
| | | | | llvm-svn: 170499 | |||||
* | tsan: intercept fork() to prevent false race reports on fd's | Dmitry Vyukov | 2012-12-18 | 1 | -0/+15 | |
| | | | | llvm-svn: 170433 | |||||
* | tsan: add signalfd() and inotify_init() interceptors | Dmitry Vyukov | 2012-12-18 | 1 | -0/+28 | |
| | | | | llvm-svn: 170429 | |||||
* | [Sanitizer] Expose StackTrace::GetPreviousInstructionPc() to get PC of call ↵ | Alexey Samsonov | 2012-12-18 | 1 | -2/+2 | |
| | | | | | | instruction from return address llvm-svn: 170424 |