From: gnezdo Date: Fri, 28 Apr 2023 12:03:49 +0000 (+0000) Subject: Enable kernel-address sanitizer for clang openbsd target X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=68d04839686b9c4eeff4068f081af6cb5546198f;p=openbsd Enable kernel-address sanitizer for clang openbsd target OK deraadt@ --- 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; }