Skip to contentSkip to conversation

VFIO update for v6.18-rc4

GIT PULL Merged Alex Williamson 2 participants 2 messages Oct 31, 2025 KVM

lore
Share & tools
lore
#0 lore raw

Hi Linus,

The following changes since commit dcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa:

Linux 6.18-rc3 (2025-10-26 15:59:49 -0700)

are available in the Git repository at:

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

for you to fetch changes up to de8d1f2fd5a510bf2c1c25b84e1a718a0f0af105:

vfio: selftests: add end of address space DMA map/unmap tests (2025-10-28 15:54:41 -0600)

----------------------------------------------------------------
VFIO update for v6.18-rc4

- Fix overflows in vfio type1 backend for mappings at the end of the 64-bit address space, resulting in leaked pinned memory. New selftest support included to avoid such issues in the future. (Alex Mastro)

----------------------------------------------------------------
Alex Mastro (5):
vfio/type1: sanitize for overflow using check_*_overflow() vfio/type1: move iova increment to unmap_unpin_*() caller vfio/type1: handle DMA map/unmap up to the addressable limit
vfio: selftests: update DMA map/unmap helpers to support more test kinds
vfio: selftests: add end of address space DMA map/unmap tests

 drivers/vfio/vfio_iommu_type1.c                     | 173 +++++++++++++--------
 .../testing/selftests/vfio/lib/include/vfio_util.h  |  27 +++-
 tools/testing/selftests/vfio/lib/vfio_pci_device.c  | 104 ++++++++++---
 .../testing/selftests/vfio/vfio_dma_mapping_test.c  |  95 ++++++++++-
 4 files changed, 308 insertions(+), 91 deletions(-)