Re: [PATCH v1] hw/vfio: Fix liveness check in vfio_connect_kvm_msi_virq()
Michael Tokarev <[email protected]> Wed, 5 Aug 2026 08:23:44 +0300
| Newsgroups | gmane.comp.emulators.qemu.stable,gmane.comp.emulators.qemu |
|---|---|
| Message-ID | <[email protected]> |
On 7/27/26 18:00, Tycho Andersen wrote: > From: "Tycho Andersen (AMD)" <[email protected]> > > While working on savevm/loadvm for a new vfio device, I encountered the > crash below. Since vfio_connect_kvm_msi_virq() didn't check the ->use flag > for the vector, it would pass an unused vector down to > vfio_cpr_load_vector_fd() which would crash. > > Fix this by checking the ->use flag along with the virq number to detect > whether a vector is valid or not. > > Thread 1 "qemu-system-x86" received signal SIGSEGV, Segmentation fault. [...] I'm picking this one up for qemu 11.0.x stable series. Please let me know if I should not. Thanks, /mjt