[compiler-rt] r197568 - [msan] Disable DynamoRio detection.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Wed Dec 18 05:25:46 PST 2013
Author: eugenis
Date: Wed Dec 18 07:25:45 2013
New Revision: 197568
URL: http://llvm.org/viewvc/llvm-project?rev=197568&view=rev
Log:
[msan] Disable DynamoRio detection.
This code is not robust enough and triggers when simply linking with
libdynamorio.so, without any code translation at all. Disabling it is safe
(i.e. we may unpoison too much memory and see false negatives, but never false
positives).
Modified:
compiler-rt/trunk/lib/msan/msan.cc
Modified: compiler-rt/trunk/lib/msan/msan.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan.cc?rev=197568&r1=197567&r2=197568&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan.cc (original)
+++ compiler-rt/trunk/lib/msan/msan.cc Wed Dec 18 07:25:45 2013
@@ -75,19 +75,7 @@ extern "C" SANITIZER_WEAK_ATTRIBUTE cons
namespace __msan {
static bool IsRunningUnderDr() {
- bool result = false;
- MemoryMappingLayout proc_maps(/*cache_enabled*/true);
- const sptr kBufSize = 4095;
- char *filename = (char*)MmapOrDie(kBufSize, __FUNCTION__);
- while (proc_maps.Next(/* start */0, /* end */0, /* file_offset */0,
- filename, kBufSize, /* protection */0)) {
- if (internal_strstr(filename, "libdynamorio") != 0) {
- result = true;
- break;
- }
- }
- UnmapOrDie(filename, kBufSize);
- return result;
+ return false;
}
void EnterSymbolizer() { ++is_in_symbolizer; }
More information about the llvm-commits
mailing list