RE: [PATCH] vfio/pci: fix racy on error and request eventfd ctx

2020-07-15 Thread Zengtao (B)
rg; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] vfio/pci: fix racy on error and request eventfd ctx > > On Wed, Jul 15, 2020 at 03:34:41PM +0800, Zeng Tao wrote: > > The vfio_pci_release call will free and clear the error and request > > eventfd ctx while these ctx could be i

Re: [PATCH] vfio/pci: fix racy on error and request eventfd ctx

2020-07-15 Thread Qian Cai
On Wed, Jul 15, 2020 at 03:34:41PM +0800, Zeng Tao wrote: > The vfio_pci_release call will free and clear the error and request > eventfd ctx while these ctx could be in use at the same time in the > function like vfio_pci_request, and it's expected to protect them under > the vdev->igate mutex, wh

RE: [PATCH] vfio/pci: fix racy on error and request eventfd ctx

2020-07-15 Thread Zengtao (B)
hel Lespinasse; Denis Efremov; k...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] vfio/pci: fix racy on error and request eventfd ctx > > On Wed, 15 Jul 2020 15:34:41 +0800 > Zeng Tao wrote: > > > The vfio_pci_release call will free and clear the

Re: [PATCH] vfio/pci: fix racy on error and request eventfd ctx

2020-07-15 Thread Cornelia Huck
On Wed, 15 Jul 2020 15:34:41 +0800 Zeng Tao wrote: > The vfio_pci_release call will free and clear the error and request > eventfd ctx while these ctx could be in use at the same time in the > function like vfio_pci_request, and it's expected to protect them under > the vdev->igate mutex, which i