On Wed, Dec 10, 2025 at 09:13:42PM +0000, Kathara Sasikumar wrote:
> The get_hw_info uses a smaller user buffer on purpose to check how
> the kernel updates only the fields that fit in the buffer. The test
> created a custom smaller struct for this, but the helper function later
> treats the buffer as struct iommu_test_hw_info. This makes the compiler
> warn about a possible out-of-bounds access (-Warray-bounds).
> 
> This keeps the test behavior the same and removes the warning.
> 
> Signed-off-by: Kathara Sasikumar <[email protected]>
> ---
>  tools/testing/selftests/iommu/iommufd.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

This breaks the test, I already posted a fix, it should be in linux-next.

Jason

Reply via email to