Re: [PATCH net v2] net/mlx5e: IPsec, Fix RX mapped ID leak when adding a rule fails
From: patchwork-bot+netdevbpf
Date: Thu Nov 26 2026 - 06:00:13 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Thu, 19 Nov 2026 21:55:01 -0500 you wrote:
> In switchdev mode, rx_add_rule() calls
> mlx5_esw_ipsec_rx_setup_modify_header(), which allocates a mapped ID for
> the SA in ipsec->ipsec_obj_id_map. If a later step fails, the error path
> frees the modify header but leaves the ID in the XArray, and
> mlx5e_xfrm_add_state() then frees the SA entry. Each failed inbound
> packet offload SA leaks one of the 2047 IDs. Once they are used up, no
> new inbound SA can be offloaded until the IPsec context is cleaned up.
>
> [...]
Here is the summary with links:
- [net,v2] net/mlx5e: IPsec, Fix RX mapped ID leak when adding a rule fails
https://git.kernel.org/netdev/net-next/c/a6e391baedf3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html