@samitouri / QOSamiQemu / commits / 0cb2ad3005

hw/vfio-user: use a valid object ID for iothread

The objectg_new_with_propv/props methods failed to validate that the QOM "id" was well formed. This allowed the vfio-user code to use an invalid ID of "VFIO user" (space is not permitted) in its internal code. Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>

Daniel P. Berrangé committed May 20, 2026 at 09:21 UTC 0cb2ad30050878538ac2b9b9954c74f2b65c06a5
1 file changed +1 -1
hw/vfio-user/proxy.c
+1 -1
@@ -933,7 +933,7 @@ VFIOUserProxy *vfio_user_connect_dev(SocketAddress *addr, Error **errp)
933 qemu_cond_init(&proxy->close_cv);
934
935 if (vfio_user_iothread == NULL) {
936 - vfio_user_iothread = iothread_create("VFIO user", errp);
936 + vfio_user_iothread = iothread_create("vfio-user", errp);
937 }
938
939 proxy->ctx = iothread_get_aio_context(vfio_user_iothread);