Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [msan] A runtime option to disable wrapping of signal handlers. | Evgeniy Stepanov | 2013-04-05 | 3 | -21/+37 | |
| | | | | llvm-svn: 178865 | |||||
* | [Sanitizer] Use a common mutex to prevent mixing reports from different ↵ | Alexey Samsonov | 2013-04-05 | 1 | -4/+4 | |
| | | | | | | sanitizers. This fixes PR15516 llvm-svn: 178853 | |||||
* | [sanitizer] Use ucontext_t instead of "struct ucontext". | Evgeniy Stepanov | 2013-04-04 | 1 | -1/+1 | |
| | | | | | | Fixes Mac build. llvm-svn: 178755 | |||||
* | [msan] Unpoison siginfo_t and ucontext_t in signal handlers. | Evgeniy Stepanov | 2013-04-04 | 2 | -3/+100 | |
| | | | | | | Add wrappers for all user signal handlers to unpoison the handler's arguments. llvm-svn: 178754 | |||||
* | [sanitizer] while doing fast unwinding make sure that the frame pointer is ↵ | Kostya Serebryany | 2013-04-04 | 1 | -1/+1 | |
| | | | | | | aligned; fix lint llvm-svn: 178747 | |||||
* | [sanitizer] More interceptors. | Evgeniy Stepanov | 2013-04-01 | 2 | -0/+90 | |
| | | | | | | | getpwnam, getpwuid, getpwnam_r, getpwuid_r, clock_getres, clock_gettime, clock_settime, getitimer, setitimer, sigaction (MSan). llvm-svn: 178465 | |||||
* | [libsanitizer] Unmapping the old cache partially invalidates the memory ↵ | Alexander Potapenko | 2013-03-26 | 1 | -1/+1 | |
| | | | | | | | | | | layout, so add a flag to skip cache update for cases when that's unacceptable (e.g. lsan). Patch by Sergey Matveev (earthdok@google.com) llvm-svn: 178000 | |||||
* | Build and install .syms files alongside sanitizer runtimes. These are used to | Richard Smith | 2013-03-23 | 2 | -1/+3 | |
| | | | | | | | specify which symbols are exported to DSOs when the sanitizer is statically linked into a binary. llvm-svn: 177784 | |||||
* | [msan] Handle dlopen() failure in dlopen interceptor. | Evgeniy Stepanov | 2013-03-22 | 2 | -1/+8 | |
| | | | | llvm-svn: 177728 | |||||
* | [msan] Move test main and gtest include to separate files. | Evgeniy Stepanov | 2013-03-22 | 4 | -10/+51 | |
| | | | | llvm-svn: 177718 | |||||
* | [msan] Place dlopen in an anon namespace. | Evgeniy Stepanov | 2013-03-22 | 1 | -0/+2 | |
| | | | | llvm-svn: 177716 | |||||
* | [sanitizer] Replace more platform checks with SANITIZER_ constants. | Evgeniy Stepanov | 2013-03-19 | 1 | -1/+2 | |
| | | | | llvm-svn: 177400 | |||||
* | [sanitizer] Don't adjust the size of the user-allocated stack. | Evgeniy Stepanov | 2013-03-19 | 2 | -16/+29 | |
| | | | | | | Moved this code to sanitizer_common. llvm-svn: 177383 | |||||
* | [msan] Intercept readdir64. | Evgeniy Stepanov | 2013-03-14 | 3 | -0/+45 | |
| | | | | llvm-svn: 177065 | |||||
* | [msan] Fix a typo in test. | Evgeniy Stepanov | 2013-03-14 | 1 | -1/+1 | |
| | | | | llvm-svn: 177059 | |||||
* | [msan] Options for switching between fast and cfi unwinders in run time. | Evgeniy Stepanov | 2013-03-14 | 3 | -3/+12 | |
| | | | | | | Does not change default behavior. llvm-svn: 177057 | |||||
* | [sanitizer] Intercept frexp and friends. | Evgeniy Stepanov | 2013-03-14 | 1 | -0/+19 | |
| | | | | llvm-svn: 177056 | |||||
* | [msan] Intercept __strdup, strndup, __strndup. | Evgeniy Stepanov | 2013-03-14 | 4 | -10/+87 | |
| | | | | llvm-svn: 177052 | |||||
* | [sanitizer] Fix lint. | Evgeniy Stepanov | 2013-03-13 | 1 | -1/+2 | |
| | | | | llvm-svn: 176943 | |||||
* | [Sanitizer] Build ASan, TSan and MSan runtimes with -fno-rtti. | Alexey Samsonov | 2013-03-13 | 1 | -0/+1 | |
| | | | | llvm-svn: 176940 | |||||
* | [msan] Increase stack size as required. | Evgeniy Stepanov | 2013-03-13 | 3 | -0/+52 | |
| | | | | | | Adjust stack size in pthread_attr_t when the app-requested size does not fit MSan TLS. llvm-svn: 176939 | |||||
* | [Sanitizer] Change MemoryMappingLayout methods to also report memory ↵ | Alexey Samsonov | 2013-03-13 | 1 | -1/+1 | |
| | | | | | | protection flags (for future use in leak checker). Patch by Sergey Matveev. llvm-svn: 176931 | |||||
* | [msan] Use sptr instead of ptrdiff_t. | Evgeniy Stepanov | 2013-03-12 | 1 | -1/+1 | |
| | | | | llvm-svn: 176854 | |||||
* | [msan] intercept dlopen and clear shadow for it | Reid Kleckner | 2013-03-11 | 8 | -0/+190 | |
| | | | | | | | | | | | | | | | | | | | | Summary: The loader does not call mmap() through the PLT because it has to bootstrap the process before libc is present. Hooking dlopen() isn't enough either because the loader runs module initializers before returning, and they could run arbitrary msan instrumented code. If msandr is present, then we can intercept the mmaps from dlopen at the syscall layer and clear the shadow there. If msandr is missing, we clear the shadow after dlopen() and hope any initializers are trivial. Reviewers: eugenis CC: kcc, llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D509 llvm-svn: 176818 | |||||
* | [msan] Block reports from interceptors during _Unwind_Backtrace | Reid Kleckner | 2013-03-06 | 3 | -6/+9 | |
| | | | | | | | | | | | | | | | | | | | Summary: I'm hitting a big recursive report from: uninit on strlen -> __msan::PrintWarningWithOrigin() -> __msan::GetStackTrace() -> __sanitizer::StackTrace::SlowUnwindStack() -> _Unwind_Backtrace() -> ... libgcc calls -> uninit on strlen() -> ... repeats Reviewers: eugenis Differential Revision: http://llvm-reviews.chandlerc.com/D497 llvm-svn: 176555 | |||||
* | [msan] Lit tests for __attribute__((no_sanitize_memory)). | Evgeniy Stepanov | 2013-02-28 | 2 | -0/+67 | |
| | | | | llvm-svn: 176248 | |||||
* | [sanitizer] Add MSan to Makefile-based build rules. | Evgeniy Stepanov | 2013-02-21 | 1 | -0/+24 | |
| | | | | llvm-svn: 175737 | |||||
* | [msan] Use slow stack unwinder in UMR reports. | Evgeniy Stepanov | 2013-02-19 | 2 | -5/+11 | |
| | | | | llvm-svn: 175510 | |||||
* | [msan] Fix ReExec on linux. | Evgeniy Stepanov | 2013-02-19 | 1 | -2/+4 | |
| | | | | | | | execle(argv[0], ...) is wrong, because argv[0] may contain a PATH-resolvable program name. Execute /proc/self/exe instead. llvm-svn: 175504 | |||||
* | [sanitizer] Add interceptors for localtime and friends. | Evgeniy Stepanov | 2013-02-19 | 5 | -119/+44 | |
| | | | | llvm-svn: 175499 | |||||
* | [msan] don't check shadow inside interceptors if we are inside symbolizer; ↵ | Kostya Serebryany | 2013-02-13 | 5 | -6/+42 | |
| | | | | | | add weak function __msan_default_options that overrides default options llvm-svn: 175040 | |||||
* | [msan] Allow zero buf pointer in getcwd() interceptor. | Evgeniy Stepanov | 2013-02-12 | 2 | -1/+8 | |
| | | | | llvm-svn: 174970 | |||||
* | [MSan] symbolize correct PC when printing Summary message | Alexey Samsonov | 2013-02-12 | 1 | -1/+2 | |
| | | | | llvm-svn: 174956 | |||||
* | [msan] Lit tests for MemorySanitizer. | Evgeniy Stepanov | 2013-02-11 | 10 | -22/+208 | |
| | | | | | | | | Build system setup for MSan lit tests (build with freshly-built clang, run, check output) - a nearly exact copy from ASan. First 2 lit tests for MSan. llvm-svn: 174876 | |||||
* | [msan] add strip_path_prefix flag; print error summary; don't crash while ↵ | Kostya Serebryany | 2013-02-07 | 3 | -3/+19 | |
| | | | | | | printing summary if debug info is missing. The tests will follow later once we establish the lit-like tests for msan. llvm-svn: 174595 | |||||
* | [sanitizer] make the error messages from sanitizer_common contain the actual ↵ | Kostya Serebryany | 2013-01-31 | 1 | -0/+1 | |
| | | | | | | tool name llvm-svn: 174059 | |||||
* | [sanitizer] Further split private and public sanitizer headers. | Evgeniy Stepanov | 2013-01-30 | 2 | -17/+17 | |
| | | | | | | And make msan_interface.h C-compatible. llvm-svn: 173928 | |||||
* | Use LLVM_BUILD_TYPE instead of CMAKE_BUILD_TYPE in compiler-rt unit tests to ↵ | Alexey Samsonov | 2013-01-30 | 1 | -1/+7 | |
| | | | | | | match the behavior of llvm unittests llvm-svn: 173926 | |||||
* | [Sanitizer] update style checker script and fix namespace style warnings | Alexey Samsonov | 2013-01-30 | 4 | -5/+3 | |
| | | | | llvm-svn: 173910 | |||||
* | [msan] Cleanup public interface header. | Evgeniy Stepanov | 2013-01-29 | 7 | -45/+168 | |
| | | | | | | | | Moved everything users are not supposed to use to a private interface header. Documented all public interfaces. Made them safe to use even if built without MemorySanitizer. llvm-svn: 173800 | |||||
* | [msan] A runtime call to support custom allocators. | Evgeniy Stepanov | 2013-01-28 | 1 | -0/+13 | |
| | | | | llvm-svn: 173687 | |||||
* | [msan] Remove icmp tests that require exact shadow propagation. | Evgeniy Stepanov | 2013-01-28 | 1 | -7/+0 | |
| | | | | llvm-svn: 173686 | |||||
* | [CMake] Fix compiler-rt tests after r173617 | Alexey Samsonov | 2013-01-28 | 1 | -5/+2 | |
| | | | | llvm-svn: 173668 | |||||
* | [msan] Tests for ICmp handling. | Evgeniy Stepanov | 2013-01-25 | 1 | -0/+77 | |
| | | | | llvm-svn: 173456 | |||||
* | [sanitizer] fix calloc overflow in asan/tsan/msan | Kostya Serebryany | 2013-01-25 | 2 | -0/+10 | |
| | | | | llvm-svn: 173441 | |||||
* | [msan] Allow waitpid while in __msan_init(). | Evgeniy Stepanov | 2013-01-23 | 1 | -0/+2 | |
| | | | | | | This is used in symbolizer init. llvm-svn: 173263 | |||||
* | [msan] gethostbyname interceptor. | Evgeniy Stepanov | 2013-01-23 | 2 | -0/+20 | |
| | | | | llvm-svn: 173249 | |||||
* | [msan] Remove the trap handler code. | Evgeniy Stepanov | 2013-01-22 | 2 | -18/+0 | |
| | | | | llvm-svn: 173161 | |||||
* | [msan] Follow -msan-keep-going in reports from interceptors. | Evgeniy Stepanov | 2013-01-22 | 1 | -0/+6 | |
| | | | | llvm-svn: 173158 | |||||
* | [msan] Fix linkage type of __msan_track_origins. | Evgeniy Stepanov | 2013-01-22 | 1 | -1/+1 | |
| | | | | llvm-svn: 173157 |