]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommufd/selftest: Add asserts testing global mfd
authorNicolin Chen <nicolinc@nvidia.com>
Tue, 24 Jun 2025 18:00:47 +0000 (11:00 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 24 Jun 2025 18:45:12 +0000 (15:45 -0300)
commita9bf67ee170514b17541038c60bb94cb2cf5732f
treeeb07f6d3c8afc8fc8b6ac5c051b2272f9a554a5d
parent4b75e3babb85238912f50bbe0647bae08242a9b6
iommufd/selftest: Add asserts testing global mfd

The mfd and mfd_buffer will be used in the tests directly without an extra
check. Test them in setup_sizes() to ensure they are safe to use.

Fixes: 0bcceb1f51c7 ("iommufd: Selftest coverage for IOMMU_IOAS_MAP_FILE")
Link: https://patch.msgid.link/r/94bdc11d2b6d5db337b1361c5e5fce0ed494bb40.1750787928.git.nicolinc@nvidia.com
Cc: stable@vger.kernel.org
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
tools/testing/selftests/iommu/iommufd.c