summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Steuck <gnezdo@cvs.openbsd.org>2023-04-28 12:03:50 +0000
committerGreg Steuck <gnezdo@cvs.openbsd.org>2023-04-28 12:03:50 +0000
commit8b9c0ba666d9fbece93189253980118abacc50c3 (patch)
treed6ea42e973b99b449d8f97891418c24b2aac4d14
parent3a702bdabed983a95e886d8852f6ee9018670962 (diff)
Enable kernel-address sanitizer for clang openbsd target
OK deraadt@
-rw-r--r--gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp b/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
index 1577f70aad6..12e8edb21e0 100644
--- a/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
+++ b/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.cpp
@@ -248,6 +248,10 @@ SanitizerMask OpenBSD::getSupportedSanitizers() const {
Res |= SanitizerKind::FuzzerNoLink;
}
+ if (IsX86_64) {
+ Res |= SanitizerKind::KernelAddress;
+ }
+
return Res;
}