Re: [PATCH rc 3/4] iommufd/selftest: Add asserts testing global mfd

From: Jason Gunthorpe
Date: Mon Jun 16 2025 - 12:27:33 EST


On Sun, Jun 15, 2025 at 10:02:05PM -0700, Nicolin Chen wrote:
> 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")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx>
> ---
> tools/testing/selftests/iommu/iommufd.c | 2 ++
> 1 file changed, 2 insertions(+)

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Jason