]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vfio: Prevent from pinned DMABUF importers to attach to VFIO DMABUF
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 21 Jan 2026 15:45:02 +0000 (17:45 +0200)
committerAlex Williamson <alex@shazbot.org>
Fri, 23 Jan 2026 15:47:48 +0000 (08:47 -0700)
commit61ceaf236115f20f4fdd7cf60f883ada1063349a
tree9472815d3211e292c4664d9650f83d0216d5d17d
parent24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7
vfio: Prevent from pinned DMABUF importers to attach to VFIO DMABUF

Some pinned importers, such as non-ODP RDMA ones, cannot invalidate their
mappings and therefore must be prevented from attaching to this exporter.

Fixes: 5d74781ebc86 ("vfio/pci: Add dma-buf export support for MMIO regions")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Pranjal Shrivastava <praan@google.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20260121-vfio-add-pin-v1-1-4e04916b17f1@nvidia.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
drivers/vfio/pci/vfio_pci_dmabuf.c