summaryrefslogtreecommitdiff
path: root/lib/msandr
Commit message (Collapse)AuthorAge
* [msandr] Add check-before-write optimization.Evgeniy Stepanov2013-10-30
| | | | | | | | | Replace blind store with check-before-store to avoid unnecessary memory stores. Patch by Qin Zhao. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193703 91177308-0d34-0410-b5e6-96231b3b80d8
* [msandr] Remove use of std::set in msandr client to avoid reentrancy issues.Evgeniy Stepanov2013-10-29
| | | | | | | Patch by Qin Zhao. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193654 91177308-0d34-0410-b5e6-96231b3b80d8
* [msandr] Add support for standalone test.Evgeniy Stepanov2013-10-29
| | | | | | | | | Add macro MSANDR_STANDALONE_TEST for standalone test without msan executables. Patch by Qin Zhao. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193643 91177308-0d34-0410-b5e6-96231b3b80d8
* [msandr] Add NATIVE_EXEC macro for building client for running in DynamoRIO ↵Evgeniy Stepanov2013-10-25
| | | | | | | | | | | | | | hybrid mode only. When running application in DynamoRIO hybrid mode only, only uninstrumented modules will run in DynamoRIO and be instrumented by the client, so we do not need module table in MSanDR. Patch by Qin Zhao. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193411 91177308-0d34-0410-b5e6-96231b3b80d8
* [msandr] Add debugging instructions to README.txt.Evgeniy Stepanov2013-09-13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190680 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Update MSanDR build instructions.Evgeniy Stepanov2013-09-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189760 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Get rid of "using std::string" in msandr.Evgeniy Stepanov2013-03-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177714 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] Clean up extensions during msandr shutdownReid Kleckner2013-03-13
| | | | | | Otherwise debug DynamoRIO complains at us for leaking memory. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176947 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] intercept dlopen and clear shadow for itReid Kleckner2013-03-11
| | | | | | | | | | | | | | | | | | | | 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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176818 91177308-0d34-0410-b5e6-96231b3b80d8
* [msan] MSanDR: initial commit.Evgeniy Stepanov2013-02-22
MSanDR is a DynamoRio-based tool that handles uninstrumented libraries and dynamically generated code for MSan. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175883 91177308-0d34-0410-b5e6-96231b3b80d8