Re: [PATCH] hw/vfio/pci: fix double free in vfio_msi_disable

2019-09-26 Thread Alex Williamson
On Thu, 26 Sep 2019 14:29:35 +0300 Evgeny Yakovlev wrote: > The following guest behaviour patter leads to double free in VFIO PCI: > > 1. Guest enables MSI interrupts > vfio_msi_enable is called, but fails in vfio_enable_vectors. > In our case this was because VFIO GPU device was in D3 state. >

[PATCH] hw/vfio/pci: fix double free in vfio_msi_disable

2019-09-26 Thread Evgeny Yakovlev
The following guest behaviour patter leads to double free in VFIO PCI: 1. Guest enables MSI interrupts vfio_msi_enable is called, but fails in vfio_enable_vectors. In our case this was because VFIO GPU device was in D3 state. Unhappy path in vfio_msi_enable will g_free(vdev->msi_vectors) but not s