aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_csan.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_csan.c')
-rw-r--r--sys/kern/subr_csan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_csan.c b/sys/kern/subr_csan.c
index b53bf4d74f01..e01dfb1c6293 100644
--- a/sys/kern/subr_csan.c
+++ b/sys/kern/subr_csan.c
@@ -151,6 +151,8 @@ kcsan_access(uintptr_t addr, size_t size, bool write, bool atomic, uintptr_t pc)
if (__predict_false(!kcsan_enabled))
return;
+ if (__predict_false(kcsan_md_unsupported((vm_offset_t)addr)))
+ return;
new.addr = addr;
new.size = size;