summaryrefslogtreecommitdiffstats
path: root/drivers/vfio/vfio_iommu_spapr_tce.c
diff options
context:
space:
mode:
authorAlex Williamson2016-05-30 15:50:10 +0200
committerAlex Williamson2016-05-30 15:50:10 +0200
commit956b56a984ddf10aa69b25318dc04430101beed6 (patch)
tree5d698890a0f6ab87af4c647908395f51d30e8356 /drivers/vfio/vfio_iommu_spapr_tce.c
parentLinux 4.7-rc1 (diff)
downloadkernel-qcow2-linux-956b56a984ddf10aa69b25318dc04430101beed6.tar.gz
kernel-qcow2-linux-956b56a984ddf10aa69b25318dc04430101beed6.tar.xz
kernel-qcow2-linux-956b56a984ddf10aa69b25318dc04430101beed6.zip
vfio/pci: Fix ordering of eventfd vs virqfd shutdown
Both the INTx and MSI/X disable paths do an eventfd_ctx_put() for the trigger eventfd before calling vfio_virqfd_disable() any potential mask and unmask eventfds. This opens a use-after-free race where an inopportune irqfd can reference the freed signalling eventfd. Reorder to avoid this possibility. Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/vfio_iommu_spapr_tce.c')
0 files changed, 0 insertions, 0 deletions