Re: [PATCH net v2] net/mlx5: free mlx5_st_idx_data on final dealloc

From: patchwork-bot+netdevbpf

Date: Fri Jul 17 2026 - 06:08:29 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 2 Jul 2026 15:24:58 -0700 you wrote:
> Workloads that repeatedly allocate and release mkeys carrying TPH
> steering-tag hints (e.g. churning RDMA MRs) leak one
> struct mlx5_st_idx_data per cycle; kmemleak flags it as unreferenced
> and the kmalloc slab grows over time.
>
> When the last reference to an ST table entry is dropped,
> mlx5_st_dealloc_index() removed the entry from idx_xa but the backing
> mlx5_st_idx_data allocation was never freed.
>
> [...]

Here is the summary with links:
- [net,v2] net/mlx5: free mlx5_st_idx_data on final dealloc
https://git.kernel.org/netdev/net/c/df6134b527a8

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html