Re: [PATCH] RDMA/mlx5: Fix cntrs_max_index overflow when binding flow counters
From: Leon Romanovsky
Date: Mon Nov 16 2026 - 08:14:56 EST
On Sun, 15 Nov 2026 08:50:25 +0000, Hungyu Lin wrote:
> counters_set_description() stores the highest counter index supplied by
> the user plus one in cntrs_max_index. Both are u32, so an index of
> U32_MAX wraps cntrs_max_index to zero, and the entries after it can only
> raise it to their own index plus one.
>
> mlx5_ib_read_counters() uses cntrs_max_index to check that every bound
> index fits in the output buffer before it runs
>
> [...]
Applied, thanks!
[1/1] RDMA/mlx5: Fix cntrs_max_index overflow when binding flow counters
https://git.kernel.org/rdma/rdma/c/4583abff319acf
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>