[PATCH] D124135: [scudo] Disable memory tagging on arm64_32

Dominic Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 17:34:47 PDT 2022


ddcc created this revision.
ddcc added a reviewer: vitalybuka.
Herald added subscribers: cryptoad, kristof.beyls.
Herald added a project: All.
ddcc requested review of this revision.
Herald added a project: Sanitizers.

arm64_32 is an ILP32 platform


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124135

Files:
  compiler-rt/lib/scudo/standalone/memtag.h


Index: compiler-rt/lib/scudo/standalone/memtag.h
===================================================================
--- compiler-rt/lib/scudo/standalone/memtag.h
+++ compiler-rt/lib/scudo/standalone/memtag.h
@@ -18,7 +18,9 @@
 
 namespace scudo {
 
-#if (__clang_major__ >= 12 && defined(__aarch64__)) || defined(SCUDO_FUZZ)
+#if (__clang_major__ >= 12 && defined(__aarch64__) &&                          \
+     __SIZEOF_POINTER__ == 8) ||                                               \
+    defined(SCUDO_FUZZ)
 
 // We assume that Top-Byte Ignore is enabled if the architecture supports memory
 // tagging. Not all operating systems enable TBI, so we only claim architectural
@@ -57,7 +59,7 @@
 
 #endif
 
-#if __clang_major__ >= 12 && defined(__aarch64__)
+#if __clang_major__ >= 12 && defined(__aarch64__) && __SIZEOF_POINTER__ == 8
 
 #if SCUDO_LINUX
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124135.424063.patch
Type: text/x-patch
Size: 861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220421/4792864e/attachment.bin>


More information about the llvm-commits mailing list