linux-stable/drivers/vfio/pci
Brett Creeley 8512ed2563 vfio/pds: Always clear the save/restore FDs on reset
After reset the VFIO device state will always be put in
VFIO_DEVICE_STATE_RUNNING, but the save/restore files will only be
cleared if the previous state was VFIO_DEVICE_STATE_ERROR. This
can/will cause the restore/save files to be leaked if/when the
migration state machine transitions through the states that
re-allocates these files. Fix this by always clearing the
restore/save files for resets.

Fixes: 7dabb1bcd1 ("vfio/pds: Add support for firmware recovery")
Cc: stable@vger.kernel.org
Signed-off-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240228003205.47311-2-brett.creeley@amd.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2024-03-01 15:46:21 -07:00
..
hisilicon hisi_acc_vfio_pci: Update migration data pointer correctly on saving/resume 2024-01-05 09:06:45 -07:00
mlx5 vfio/mlx5: Let firmware knows upon leaving PRE_COPY back to RUNNING 2024-02-22 12:17:32 -07:00
nvgrace-gpu vfio/nvgrace-gpu: Add vfio pci variant module for grace hopper 2024-02-22 12:23:37 -07:00
pds vfio/pds: Always clear the save/restore FDs on reset 2024-03-01 15:46:21 -07:00
virtio vfio/pci: rename and export range_intersect_range 2024-02-22 12:20:20 -07:00
Kconfig vfio/nvgrace-gpu: Add vfio pci variant module for grace hopper 2024-02-22 12:23:37 -07:00
Makefile vfio/nvgrace-gpu: Add vfio pci variant module for grace hopper 2024-02-22 12:23:37 -07:00
trace.h
vfio_pci.c vfio-iommufd: Add detach_ioas support for physical VFIO devices 2023-07-25 10:19:12 -06:00
vfio_pci_config.c vfio/pci: rename and export range_intersect_range 2024-02-22 12:20:20 -07:00
vfio_pci_core.c vfio/pci: WARN_ON driver_override kasprintf failure 2024-02-22 12:14:37 -07:00
vfio_pci_igd.c vfio: Use GFP_KERNEL_ACCOUNT for userspace persistent allocations 2023-01-23 11:26:29 -07:00
vfio_pci_intrs.c eventfd: simplify eventfd_signal() 2023-11-28 14:08:38 +01:00
vfio_pci_priv.h vfio/pci: Mask INTx during runtime suspend 2022-09-01 15:29:11 -06:00
vfio_pci_rdwr.c vfio/pci: rename and export do_io_rw() 2024-02-22 12:20:20 -07:00
vfio_pci_zdev.c Merge remote-tracking branch 'mlx5/mlx5-vfio' into v6.1/vfio/next 2022-09-08 10:44:34 -06:00