]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommufd/selftest: Test reserved regions near ULONG_MAX
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 17 Jul 2025 17:59:02 +0000 (14:59 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 18 Jul 2025 20:33:07 +0000 (17:33 -0300)
commit5d8b1d957def5358113aa39b299c084836893b73
tree4376b02a9a3868c932802175de0e1558de446d22
parentb42497e3c0e74db061eafad41c0cd7243c46436b
iommufd/selftest: Test reserved regions near ULONG_MAX

This has triggered an overflow inside the ioas iova auto allocation logic,
test it directly. Use the same stimulus syzkaller found.

Link: https://patch.msgid.link/all/2-v1-7b4a16fc390b+10f4-iommufd_alloc_overflow_jgg@nvidia.com/
Tested-by: Yi Liu <yi.l.liu@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
tools/testing/selftests/iommu/iommufd.c