[compiler-rt] ceab8e3 - [HWASAN] Fix bot test failure caused by D152763 by switching to
Kirill Stoimenov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 14 07:57:24 PDT 2023
Author: Kirill Stoimenov
Date: 2023-06-14T14:55:31Z
New Revision: ceab8e3af7d8a9d3972d29ba3d0f7e6360daf242
URL: https://github.com/llvm/llvm-project/commit/ceab8e3af7d8a9d3972d29ba3d0f7e6360daf242
DIFF: https://github.com/llvm/llvm-project/commit/ceab8e3af7d8a9d3972d29ba3d0f7e6360daf242.diff
LOG: [HWASAN] Fix bot test failure caused by D152763 by switching to
unaligned memory tagging
Added:
Modified:
compiler-rt/lib/hwasan/hwasan_interceptors.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
index 168725e5a91c6..c8e9a128d08b9 100644
--- a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
@@ -214,7 +214,7 @@ static void *mmap_interceptor(Mmap real_mmap, void *addr, SIZE_T length,
template <class Munmap>
static int munmap_interceptor(Munmap real_munmap, void *addr, SIZE_T length) {
- __hwasan::TagMemoryAligned(reinterpret_cast<uptr>(addr), length, 0);
+ __hwasan::TagMemory(reinterpret_cast<uptr>(addr), length, 0);
return real_munmap(addr, length);
}
More information about the llvm-commits
mailing list