diff options
author | Keith Busch <keith.busch@intel.com> | 2016-08-05 00:09:09 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-09-19 20:14:05 +0200 |
commit | ee6ee49fd09fa17c92aadf07961d0ff406fceab8 (patch) | |
tree | b159d9b1004faceb210b73be19dd66125e964d43 /drivers/pci/host/Makefile | |
parent | x86/PCI: VMD: Eliminate index member from IRQ list (diff) | |
download | linux-ee6ee49fd09fa17c92aadf07961d0ff406fceab8.tar.xz linux-ee6ee49fd09fa17c92aadf07961d0ff406fceab8.zip |
x86/PCI: VMD: Synchronize with RCU freeing MSI IRQ descs
Fix a potential race when disabling MSI/MSI-X on a VMD domain device. If
the VMD interrupt service is running, it may see a disabled IRQ. We can
synchronize RCU just before freeing the MSI descriptor. This is safe since
the irq_desc lock isn't held, and the descriptor is valid even though it is
disabled. After vmd_msi_free(), though, the handler is reinitialized to
handle_bad_irq(), so we can't let the VMD ISR's list iteration see the
disabled IRQ after this.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by Jon Derrick: <jonathan.derrick@intel.com>
Diffstat (limited to 'drivers/pci/host/Makefile')
0 files changed, 0 insertions, 0 deletions