Re: [PATCH net v2] net/mlx5e: IPOIB, Fix QPN lookup race
From: patchwork-bot+netdevbpf
Date: Fri Nov 06 2026 - 15:44:24 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sat, 31 Oct 2026 22:57:13 +0000 you wrote:
> The parent RX completion path can load a QPN hash entry before
> mlx5i_pkey_del_qpn() unlinks and frees it, then dereference freed memory.
>
> Use RCU hlist operations and defer freeing with kfree_rcu(). The existing
> RCU read-side section in mlx5e_napi_poll() covers the lookup. Keep ht_lock
> for writers and acquire it before looking up the entry to delete.
>
> [...]
Here is the summary with links:
- [net,v2] net/mlx5e: IPOIB, Fix QPN lookup race
https://git.kernel.org/netdev/net/c/29066b0fc046
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html