diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-11-18 00:22:34 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-11-18 00:22:34 +0000 |
commit | 8b13106061d170cc38d0f7e9d2cc7119858549e3 (patch) | |
tree | 5ce3e6be301358c6bf29aaf244f14519b5a7fbb5 /lib/sanitizer_common/sanitizer_mac.cc | |
parent | c5eabf396b82cee5290244952a21ce3ee89ec0af (diff) |
Revert "[asan] Use dynamic shadow on 32-bit Android" and 3 more.
Revert the following commits:
r318369 [asan] Fallback to non-ifunc dynamic shadow on android<22.
r318235 [asan] Prevent rematerialization of &__asan_shadow.
r317948 [sanitizer] Remove unnecessary attribute hidden.
r317943 [asan] Use dynamic shadow on 32-bit Android.
MemoryRangeIsAvailable() reads /proc/$PID/maps into an mmap-ed buffer
that may overlap with the address range that we plan to use for the
dynamic shadow mapping. This is causing random startup crashes.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@318575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_mac.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_mac.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/sanitizer_common/sanitizer_mac.cc b/lib/sanitizer_common/sanitizer_mac.cc index 195a52c47..284b6cfc7 100644 --- a/lib/sanitizer_common/sanitizer_mac.cc +++ b/lib/sanitizer_common/sanitizer_mac.cc @@ -864,10 +864,6 @@ uptr GetMaxUserVirtualAddress() { #endif // SANITIZER_WORDSIZE } -uptr GetMaxVirtualAddress() { - return GetMaxUserVirtualAddress(); -} - uptr FindAvailableMemoryRange(uptr shadow_size, uptr alignment, uptr left_padding, |