[PATCH] D44745: [HWASan] Port HWASan to Linux x86-64 (clang)

Evgenii Stepanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 21 16:06:18 PDT 2018


eugenis added inline comments.


================
Comment at: lib/Driver/SanitizerArgs.cpp:33
   NotAllowedWithMinimalRuntime = Vptr,
-  RequiresPIE = DataFlow | Scudo,
+  RequiresPIE = DataFlow | HWAddress | Scudo,
   NeedsUnwindTables = Address | HWAddress | Thread | Memory | DataFlow,
----------------
I did not realize hwasan was not mentioned in RequiresPIE before.
Could you add a test for it?


================
Comment at: test/Driver/asan.c:12
-// RUN: %clang -O2 -target aarch64-unknown-linux -fsanitize=hwaddress %s -S -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-HWASAN
-// RUN: %clang -O3 -target aarch64-unknown-linux -fsanitize=hwaddress %s -S -emit-llvm -o - | FileCheck %s --check-prefix=CHECK-HWASAN
 // Verify that -fsanitize={address,kernel-address} invoke ASan and KASan instrumentation.
----------------
Don't replace existing tests!
Add new ones.



Repository:
  rC Clang

https://reviews.llvm.org/D44745





More information about the cfe-commits mailing list