[GIT PULL] VFIO fixes for v6.19-rc4

From: Alex Williamson

Date: Tue Dec 30 2025 - 16:17:42 EST


Hi Linus,

The following changes since commit 9448598b22c50c8a5bb77a9103e2d49f134c9578:

Linux 6.19-rc2 (2025-12-21 15:52:04 -0800)

are available in the Git repository at:

https://github.com/awilliam/linux-vfio.git tags/vfio-v6.19-rc4

for you to fetch changes up to acf44a2361b8d6356b71a970ab016065b5123b0e:

vfio/xe: Fix use-after-free in xe_vfio_pci_alloc_file() (2025-12-28 12:42:46 -0700)

----------------------------------------------------------------
VFIO fixes for v6.19-rc4

- Restrict ROM access to dword to resolve a regression introduced
with qword access seen on some Intel NICs. Update VGA region
access to the same given lack of precedent for 64-bit users.
(Kevin Tian)

- Fix missing .get_region_info_caps callback in the xe-vfio-pci
variant driver due to integration through the DRM tree.
(Michal Wajdeczko)

- Add aligned 64-bit access macros to tools/include/linux/types.h,
allowing removal of uapi/linux/type.h includes from various
vfio selftest, resolving redefinition warnings for integration
with KVM selftests. (David Matlack)

- Fix error path memory leak in pds-vfio-pci variant driver.
(Zilin Guan)

- Fix error path use-after-free in xe-vfio-pci variant driver.
(Alper Ak)

----------------------------------------------------------------
Alper Ak (1):
vfio/xe: Fix use-after-free in xe_vfio_pci_alloc_file()

David Matlack (2):
tools include: Add definitions for __aligned_{l,b}e64
vfio: selftests: Drop <uapi/linux/types.h> includes

Kevin Tian (2):
vfio/pci: Disable qword access to the PCI ROM bar
vfio/pci: Disable qword access to the VGA region

Michal Wajdeczko (1):
vfio/xe: Add default handler for .get_region_info_caps

Zilin Guan (1):
vfio/pds: Fix memory leak in pds_vfio_dirty_enable()

drivers/vfio/pci/nvgrace-gpu/main.c | 4 ++--
drivers/vfio/pci/pds/dirty.c | 7 ++++--
drivers/vfio/pci/vfio_pci_rdwr.c | 25 ++++++++++++++++------
drivers/vfio/pci/xe/main.c | 5 ++++-
include/linux/vfio_pci_core.h | 10 ++++++++-
tools/include/linux/types.h | 8 +++++++
.../vfio/lib/include/libvfio/iova_allocator.h | 1 -
tools/testing/selftests/vfio/lib/iommu.c | 1 -
tools/testing/selftests/vfio/lib/iova_allocator.c | 1 -
tools/testing/selftests/vfio/lib/vfio_pci_device.c | 1 -
.../testing/selftests/vfio/vfio_dma_mapping_test.c | 1 -
.../selftests/vfio/vfio_iommufd_setup_test.c | 1 -
12 files changed, 46 insertions(+), 19 deletions(-)