[GIT PULL] Please pull IOMMUFD subsystem changes

From: Jason Gunthorpe

Date: Thu Dec 18 2025 - 13:52:05 EST


Hi Linus,

Two fixes for the selftests that syzkaller found and two compilation fixes.

Thanks,
Jason

The following changes since commit 8f0b4cce4481fb22653697cced8d0d04027cb1e8:

Linux 6.19-rc1 (2025-12-14 16:05:07 +1200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd.git tags/for-linus-iommufd

for you to fetch changes up to e6a973af11135439de32ece3b9cbe3bfc043bea8:

iommufd/selftest: Check for overflow in IOMMU_TEST_OP_ADD_RESERVED (2025-12-16 11:53:40 -0400)

----------------------------------------------------------------
iommufd 6.19 first rc pull request

Few minor fixes, other than the randconfig fix this is only relevant to
test code, not releases.

- Randconfig failure if CONFIG_DMA_SHARED_BUFFER is not set

- Remove gcc warning in kselftest

- Fix a refcount leak on an error path in the selftest support code

- Fix missing overflow checks in the selftest support code

----------------------------------------------------------------
Arnd Bergmann (1):
iommufd: Fix building without dmabuf

Jason Gunthorpe (3):
iommufd/selftest: Make it clearer to gcc that the access is not out of bounds
iommufd/selftest: Do not leak the hwpt if IOMMU_TEST_OP_MD_CHECK_MAP fails
iommufd/selftest: Check for overflow in IOMMU_TEST_OP_ADD_RESERVED

drivers/iommu/iommufd/io_pagetable.c | 6 +++++-
drivers/iommu/iommufd/selftest.c | 14 +++++++++++---
tools/testing/selftests/iommu/iommufd.c | 8 +++-----
3 files changed, 19 insertions(+), 9 deletions(-)

Attachment: signature.asc
Description: PGP signature