mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 13:21:04 +08:00
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 llvm-svn: 330044
This commit is contained in:
@@ -1817,7 +1817,8 @@ bool CodeGenModule::isInSanitizerBlacklist(llvm::GlobalVariable *GV,
|
||||
StringRef Category) const {
|
||||
// For now globals can be blacklisted only in ASan and KASan.
|
||||
const SanitizerMask EnabledAsanMask = LangOpts.Sanitize.Mask &
|
||||
(SanitizerKind::Address | SanitizerKind::KernelAddress | SanitizerKind::HWAddress);
|
||||
(SanitizerKind::Address | SanitizerKind::KernelAddress |
|
||||
SanitizerKind::HWAddress | SanitizerKind::KernelHWAddress);
|
||||
if (!EnabledAsanMask)
|
||||
return false;
|
||||
const auto &SanitizerBL = getContext().getSanitizerBlacklist();
|
||||
|
||||
Reference in New Issue
Block a user