virtio_p9fs: Mark response buffers as initialized for KMSAN

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston committed 2026-10-27 15:03:52 +00:00
1 parent 73b3fb41e6
commit eca7cba74c
1 file changed
+4 -1
+4 -1
View File
@@ -32,6 +32,7 @@
#include <sys/param.h>
#include <sys/errno.h>
#include <sys/module.h>
#include <sys/msan.h>
#include <sys/sglist.h>
#include <sys/queue.h>
#include <sys/bus.h>
@@ -210,6 +211,7 @@ vt9p_intr_complete(void *xsc)
struct vt9p_softc *chan;
struct virtqueue *vq;
struct p9_req_t *curreq;
uint32_t len;
chan = (struct vt9p_softc *)xsc;
vq = chan->vt9p_vq;
@@ -218,8 +220,9 @@ vt9p_intr_complete(void *xsc)
VT9P_LOCK(chan);
again:
while ((curreq = virtqueue_dequeue(vq, NULL)) != NULL) {
while ((curreq = virtqueue_dequeue(vq, &len)) != NULL) {
curreq->rc.tag = curreq->tc.tag;
kmsan_mark(curreq->rc.sdata, len, KMSAN_STATE_INITED);
wakeup_one(curreq);
}
if (virtqueue_enable_intr(vq) != 0) {