[scudo] Don't enabled MTE for small alignment

Differential Revision: https://reviews.llvm.org/D105954

GitOrigin-RevId: 14362bf1b2589f8a769709be599f24ab7eee6d6e
diff --git a/memtag.h b/memtag.h
index cd8d95a..c48e228 100644
--- a/memtag.h
+++ b/memtag.h
@@ -319,7 +319,8 @@
 
 template <typename Config>
 inline constexpr bool allocatorSupportsMemoryTagging() {
-  return archSupportsMemoryTagging() && Config::MaySupportMemoryTagging;
+  return archSupportsMemoryTagging() && Config::MaySupportMemoryTagging &&
+         (1 << SCUDO_MIN_ALIGNMENT_LOG) >= archMemoryTagGranuleSize();
 }
 
 } // namespace scudo