Re: [PATCH net v2] eth: fbnic: fix double-free of PCS on phylink creation failure
From: patchwork-bot+netdevbpf
Date: Thu May 07 2026 - 06:43:04 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Mon, 04 May 2026 18:42:11 -0700 you wrote:
> From: Bobby Eshleman <bobbyeshleman@xxxxxxxx>
>
> fbnic_phylink_create() stores the newly allocated PCS in fbn->pcs and
> then calls phylink_create(). When phylink_create() fails, the error path
> correctly destroys the PCS via xpcs_destroy_pcs(), but the caller,
> fbnic_netdev_alloc(), responds by invoking fbnic_netdev_free() which
> calls fbnic_phylink_destroy(). That function finds fbn->pcs non-NULL and
> calls xpcs_destroy_pcs() a second time on the already-freed object,
> triggering a refcount underflow use-after-free:
>
> [...]
Here is the summary with links:
- [net,v2] eth: fbnic: fix double-free of PCS on phylink creation failure
https://git.kernel.org/netdev/net/c/593dfd40a94c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html