git: b566e0a7232b - main - amd64: Mark the trapframe as initialized in ipi_bitmap_handler()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Jul 2026 13:29:26 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=b566e0a7232b4989e79df95c2f02bdedef3ac4e7
commit b566e0a7232b4989e79df95c2f02bdedef3ac4e7
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-07-31 12:56:45 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-07-31 12:57:14 +0000
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
---
sys/x86/x86/mp_x86.c | 2 ++
1 file changed, 2 insertions(+)
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]->