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.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/kern/subr_csan.c b/sys/kern/subr_csan.c
index ec2fd23729b2..06b0b6ebb020 100644
--- a/sys/kern/subr_csan.c
+++ b/sys/kern/subr_csan.c
@@ -30,7 +30,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#define KCSAN_RUNTIME
+#define SAN_RUNTIME
#include "opt_ddb.h"
@@ -380,6 +380,7 @@ kcsan_copyout(const void *kaddr, void *uaddr, size_t len)
/* -------------------------------------------------------------------------- */
#include <machine/atomic.h>
+#define ATOMIC_SAN_PREFIX kcsan
#include <sys/atomic_san.h>
#define _CSAN_ATOMIC_FUNC_ADD(name, type) \
@@ -684,10 +685,17 @@ CSAN_ATOMIC_FUNC_THREAD_FENCE(acq_rel)
CSAN_ATOMIC_FUNC_THREAD_FENCE(rel)
CSAN_ATOMIC_FUNC_THREAD_FENCE(seq_cst)
+void
+kcsan_atomic_interrupt_fence(void)
+{
+ atomic_interrupt_fence();
+}
+
/* -------------------------------------------------------------------------- */
#include <sys/bus.h>
#include <machine/bus.h>
+#define BUS_SAN_PREFIX kcsan
#include <sys/bus_san.h>
int