[PATCH] D12160: [asan] Enable ASan for AArch64/42-bit VMA

Adhemerval Zanella via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 12:27:20 PDT 2015


zatrazz added inline comments.

================
Comment at: lib/sanitizer_common/sanitizer_platform.h:85
@@ +84,3 @@
+// VMA size definition for architecture that support multiple sizes.
+// AArch64 has 3 VMA sizes: 39, 42 and 48.
+#if SANITIZER_LINUX && defined(__aarch64__)
----------------
rengolin wrote:
> You haven't added any logic for 48 bits. Would it be simple to do it?
Yes, for ASAN it will be since the only requirement is the 'kAArch64_ShadowOffset64' (which I think it should be 1<< 45). I have not added it because I have no system to actually test it.

================
Comment at: lib/sanitizer_common/sanitizer_platform.h:89
@@ +88,3 @@
+#  define SANITIZER_AARCH64_VMA 39
+# endif
+#endif
----------------
rengolin wrote:
> Would also be good to have some kind of failsafe (#error) for when users choose a VMA that is not supported.
Right, I will add it.


http://reviews.llvm.org/D12160





More information about the llvm-commits mailing list