Re: [PATCH] net/mlx5: Fix rev_entry reference leak in mlx5_tc_ct_shared_counter_get()
From: patchwork-bot+netdevbpf
Date: Tue Sep 22 2026 - 21:21:40 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 17 Sep 2026 11:31:31 +0000 you wrote:
> When the reverse entry is found but its counter is already being
> released, refcount_inc_not_zero() fails and the reference taken by
> mlx5_tc_ct_entry_get() is never dropped before falling through to
> create_counter. Drop it so the reverse entry is not kept alive forever
> by a shared counter lookup that did not use it.
>
> Fixes: 1edae2335adf ("net/mlx5e: CT: Use the same counter for both directions")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Wentao Liang <vulab@xxxxxxxxxxx>
>
> [...]
Here is the summary with links:
- net/mlx5: Fix rev_entry reference leak in mlx5_tc_ct_shared_counter_get()
https://git.kernel.org/netdev/net/c/0bf6bb567f0e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html