From 87460c837c1ab39752b549d2bef342018a409677 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Fri, 13 Apr 2018 18:05:21 +0000 Subject: hwasan: add -fsanitize=kernel-hwaddress flag This patch adds -fsanitize=kernel-hwaddress flag, that essentially enables -hwasan-kernel=1 -hwasan-recover=1 -hwasan-match-all-tag=0xff. Differential Revision: https://reviews.llvm.org/D45046 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330044 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/Sanitizers.def | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/clang/Basic/Sanitizers.def') diff --git a/include/clang/Basic/Sanitizers.def b/include/clang/Basic/Sanitizers.def index 416dab20ae..b81b7e9f0a 100644 --- a/include/clang/Basic/Sanitizers.def +++ b/include/clang/Basic/Sanitizers.def @@ -44,8 +44,12 @@ SANITIZER("address", Address) // Kernel AddressSanitizer (KASan) SANITIZER("kernel-address", KernelAddress) +// Hardware-assisted AddressSanitizer SANITIZER("hwaddress", HWAddress) +// Kernel Hardware-assisted AddressSanitizer (KHWASan) +SANITIZER("kernel-hwaddress", KernelHWAddress) + // MemorySanitizer SANITIZER("memory", Memory) -- cgit v1.2.3