aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-07-31 12:56:45 +0000
committerMark Johnston <markj@FreeBSD.org>2026-07-31 12:57:14 +0000
commitb566e0a7232b4989e79df95c2f02bdedef3ac4e7 (patch)
treedc1d35efe81338fb0d555df4d7e6f86fc6cbd3b1
parent0aca7ce7af35fdf87db2b8866c623b0c275ee3e9 (diff)
amd64: Mark the trapframe as initialized in ipi_bitmap_handler()
Fixes: fdc1f3450634 ("x86: change signatures of ipi_{bitmap,swi}_handler() to take pointer") MFC after: 1 week Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/x86/x86/mp_x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/x86/x86/mp_x86.c b/sys/x86/x86/mp_x86.c
index 66ad23ee957c..e0f15ece62e1 100644
--- a/sys/x86/x86/mp_x86.c
+++ b/sys/x86/x86/mp_x86.c
@@ -52,6 +52,7 @@
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/memrange.h>
+#include <sys/msan.h>
#include <sys/mutex.h>
#include <sys/pcpu.h>
#include <sys/proc.h>
@@ -1336,6 +1337,7 @@ ipi_bitmap_handler(struct trapframe *frame)
u_int ipi_bitmap;
kasan_mark(frame, sizeof(*frame), sizeof(*frame), 0);
+ kmsan_mark(frame, sizeof(*frame), KMSAN_STATE_INITED);
td = curthread;
ipi_bitmap = atomic_readandclear_int(&cpuid_to_pcpu[cpu]->