Skip to content

vfio: Interrupt eventfd hardening for 5.10.y, 5.4.y

Alex Williamson stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vfio/pci: Disable auto-enable of exclusive INTx IRQdrivers/vfio/pci/vfio_pci_intrs.c+10 -70 replies
2/6vfio/pci: Lock external INTx masking opsdrivers/vfio/pci/vfio_pci_intrs.c+24 -60 replies
3/6vfio: Introduce interface to flush virqfd inject workqueuedrivers/vfio/virqfd.c include/linux/vfio.h+23 -00 replies
4/6vfio/pci: Create persistent INTx handlerdrivers/vfio/pci/vfio_pci_intrs.c+82 -670 replies
5/6vfio/platform: Create persistent IRQ handlersdrivers/vfio/platform/vfio_platform_irq.c+68 -330 replies
6/6vfio/fsl-mc: Block calling interrupt handler without triggerdrivers/vfio/fsl-mc/vfio_fsl_mc_intr.c+4 -30 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchKevin TianEric AugerReinette Chatre
1/6R-b R-b
2/6R-b R-b R-b
3/6R-b R-b R-b
4/6R-b R-b R-b
5/6R-b R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 5.10.y 5.4.y 0/6] vfio: Interrupt eventfd hardening for 5.10.y, 5.4.y

This is nearly identical to the v5.15 backport, the only difference is the split to struct vfio_pci_core_device hasn't occurred yet, so we need to use the original vfio_pci_device object instead.

NB. The fsl-mc driver doesn't exist on v5.4.y, therefore the last patch in the series should be dropped against v5.4.

v4.19.y does not include IRQF_NO_AUTOEN, so this is as far as I intend to go with these. Thanks,

Alex

Alex Williamson (6):
vfio/pci: Disable auto-enable of exclusive INTx IRQ vfio/pci: Lock external INTx masking ops
vfio: Introduce interface to flush virqfd inject workqueue vfio/pci: Create persistent INTx handler vfio/platform: Create persistent IRQ handlers vfio/fsl-mc: Block calling interrupt handler without trigger

 drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c    |   7 +-
 drivers/vfio/pci/vfio_pci_intrs.c         | 176 +++++++++++++---------
 drivers/vfio/platform/vfio_platform_irq.c | 101 +++++++++----
 drivers/vfio/virqfd.c                     |  21 +++
 include/linux/vfio.h                      |   2 +
 5 files changed, 201 insertions(+), 106 deletions(-)
Signature · 1 line
2.44.0