diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2018-03-17 00:31:41 +0000 |
|---|---|---|
| committer | Vitaly Buka <vitalybuka@google.com> | 2018-03-17 00:31:41 +0000 |
| commit | ec6327bab8afb25f746504e3c2afe0f0bcff7f49 (patch) | |
| tree | c1f6122b2933d9366358e0c8ae89812ed9a0e39f /compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc | |
| parent | 196a9fab820a1ed825aafefc23c9030b0cf66715 (diff) | |
| download | bcm5719-llvm-ec6327bab8afb25f746504e3c2afe0f0bcff7f49.tar.gz bcm5719-llvm-ec6327bab8afb25f746504e3c2afe0f0bcff7f49.zip | |
Revert "Mmap interceptor new option, Write Exec runtime detector"
Breaks Android bot.
This reverts commit r327747.
llvm-svn: 327762
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc index 2e028bc0866..5cdfbbb275f 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc @@ -81,32 +81,6 @@ void ReportErrorSummary(const char *error_type, const StackTrace *stack, #endif } -void ReportMmapWriteExec() { -#if !SANITIZER_GO - ScopedErrorReportLock l; - SanitizerCommonDecorator d; - - InternalScopedBuffer<BufferedStackTrace> stack_buffer(1); - BufferedStackTrace *stack = stack_buffer.data(); - stack->Reset(); - uptr top = 0; - uptr bottom = 0; - GET_CALLER_PC_BP_SP; - (void)sp; - bool fast = common_flags()->fast_unwind_on_fatal; - if (fast) - GetThreadStackTopAndBottom(false, &top, &bottom); - stack->Unwind(kStackTraceMax, pc, bp, nullptr, top, bottom, fast); - - Printf("%s", d.Warning()); - Report("WARNING: %s: writable-executable page usage\n", SanitizerToolName); - Printf("%s", d.Default()); - - stack->Print(); - ReportErrorSummary("w-and-x-usage", stack); -#endif -} - static void (*SoftRssLimitExceededCallback)(bool exceeded); void SetSoftRssLimitExceededCallback(void (*Callback)(bool exceeded)) { CHECK_EQ(SoftRssLimitExceededCallback, nullptr); |

