summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/msan
Commit message (Collapse)AuthorAgeFilesLines
...
* [msan] A runtime option to disable wrapping of signal handlers.Evgeniy Stepanov2013-04-053-21/+37
| | | | llvm-svn: 178865
* [Sanitizer] Use a common mutex to prevent mixing reports from different ↵Alexey Samsonov2013-04-051-4/+4
| | | | | | sanitizers. This fixes PR15516 llvm-svn: 178853
* [sanitizer] Use ucontext_t instead of "struct ucontext".Evgeniy Stepanov2013-04-041-1/+1
| | | | | | Fixes Mac build. llvm-svn: 178755
* [msan] Unpoison siginfo_t and ucontext_t in signal handlers.Evgeniy Stepanov2013-04-042-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 Serebryany2013-04-041-1/+1
| | | | | | aligned; fix lint llvm-svn: 178747
* [sanitizer] More interceptors.Evgeniy Stepanov2013-04-012-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 Potapenko2013-03-261-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 toRichard Smith2013-03-232-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 Stepanov2013-03-222-1/+8
| | | | llvm-svn: 177728
* [msan] Move test main and gtest include to separate files.Evgeniy Stepanov2013-03-224-10/+51
| | | | llvm-svn: 177718
* [msan] Place dlopen in an anon namespace.Evgeniy Stepanov2013-03-221-0/+2
| | | | llvm-svn: 177716
* [sanitizer] Replace more platform checks with SANITIZER_ constants.Evgeniy Stepanov2013-03-191-1/+2
| | | | llvm-svn: 177400
* [sanitizer] Don't adjust the size of the user-allocated stack.Evgeniy Stepanov2013-03-192-16/+29
| | | | | | Moved this code to sanitizer_common. llvm-svn: 177383
* [msan] Intercept readdir64.Evgeniy Stepanov2013-03-143-0/+45
| | | | llvm-svn: 177065
* [msan] Fix a typo in test.Evgeniy Stepanov2013-03-141-1/+1
| | | | llvm-svn: 177059
* [msan] Options for switching between fast and cfi unwinders in run time.Evgeniy Stepanov2013-03-143-3/+12
| | | | | | Does not change default behavior. llvm-svn: 177057
* [sanitizer] Intercept frexp and friends.Evgeniy Stepanov2013-03-141-0/+19
| | | | llvm-svn: 177056
* [msan] Intercept __strdup, strndup, __strndup.Evgeniy Stepanov2013-03-144-10/+87
| | | | llvm-svn: 177052
* [sanitizer] Fix lint.Evgeniy Stepanov2013-03-131-1/+2
| | | | llvm-svn: 176943
* [Sanitizer] Build ASan, TSan and MSan runtimes with -fno-rtti.Alexey Samsonov2013-03-131-0/+1
| | | | llvm-svn: 176940
* [msan] Increase stack size as required.Evgeniy Stepanov2013-03-133-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 Samsonov2013-03-131-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 Stepanov2013-03-121-1/+1
| | | | llvm-svn: 176854
* [msan] intercept dlopen and clear shadow for itReid Kleckner2013-03-118-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_BacktraceReid Kleckner2013-03-063-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 Stepanov2013-02-282-0/+67
| | | | llvm-svn: 176248
* [sanitizer] Add MSan to Makefile-based build rules.Evgeniy Stepanov2013-02-211-0/+24
| | | | llvm-svn: 175737
* [msan] Use slow stack unwinder in UMR reports.Evgeniy Stepanov2013-02-192-5/+11
| | | | llvm-svn: 175510
* [msan] Fix ReExec on linux.Evgeniy Stepanov2013-02-191-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 Stepanov2013-02-195-119/+44
| | | | llvm-svn: 175499
* [msan] don't check shadow inside interceptors if we are inside symbolizer; ↵Kostya Serebryany2013-02-135-6/+42
| | | | | | add weak function __msan_default_options that overrides default options llvm-svn: 175040
* [msan] Allow zero buf pointer in getcwd() interceptor.Evgeniy Stepanov2013-02-122-1/+8
| | | | llvm-svn: 174970
* [MSan] symbolize correct PC when printing Summary messageAlexey Samsonov2013-02-121-1/+2
| | | | llvm-svn: 174956
* [msan] Lit tests for MemorySanitizer.Evgeniy Stepanov2013-02-1110-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 Serebryany2013-02-073-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 Serebryany2013-01-311-0/+1
| | | | | | tool name llvm-svn: 174059
* [sanitizer] Further split private and public sanitizer headers.Evgeniy Stepanov2013-01-302-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 Samsonov2013-01-301-1/+7
| | | | | | match the behavior of llvm unittests llvm-svn: 173926
* [Sanitizer] update style checker script and fix namespace style warningsAlexey Samsonov2013-01-304-5/+3
| | | | llvm-svn: 173910
* [msan] Cleanup public interface header.Evgeniy Stepanov2013-01-297-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 Stepanov2013-01-281-0/+13
| | | | llvm-svn: 173687
* [msan] Remove icmp tests that require exact shadow propagation.Evgeniy Stepanov2013-01-281-7/+0
| | | | llvm-svn: 173686
* [CMake] Fix compiler-rt tests after r173617Alexey Samsonov2013-01-281-5/+2
| | | | llvm-svn: 173668
* [msan] Tests for ICmp handling.Evgeniy Stepanov2013-01-251-0/+77
| | | | llvm-svn: 173456
* [sanitizer] fix calloc overflow in asan/tsan/msanKostya Serebryany2013-01-252-0/+10
| | | | llvm-svn: 173441
* [msan] Allow waitpid while in __msan_init().Evgeniy Stepanov2013-01-231-0/+2
| | | | | | This is used in symbolizer init. llvm-svn: 173263
* [msan] gethostbyname interceptor.Evgeniy Stepanov2013-01-232-0/+20
| | | | llvm-svn: 173249
* [msan] Remove the trap handler code.Evgeniy Stepanov2013-01-222-18/+0
| | | | llvm-svn: 173161
* [msan] Follow -msan-keep-going in reports from interceptors.Evgeniy Stepanov2013-01-221-0/+6
| | | | llvm-svn: 173158
* [msan] Fix linkage type of __msan_track_origins.Evgeniy Stepanov2013-01-221-1/+1
| | | | llvm-svn: 173157
OpenPOWER on IntegriCloud