Re: [PATCH net v2] pfcp: fix socket lifetime on netdevice registration failure

From: patchwork-bot+netdevbpf

Date: Tue Sep 29 2026 - 05:21:00 EST


Hello:

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

On Thu, 24 Sep 2026 13:52:52 +0800 you wrote:
> From: Xuanqiang Luo <luoxuanqiang@xxxxxxxxxx>
>
> pfcp_newlink() creates the UDP socket before register_netdevice().
> If registration fails after pfcp_dev_init() succeeds, the core calls
> pfcp_dev_uninit(), which releases the socket and clears pfcp->sk.
> The newlink error path then releases it again, causing a NULL pointer
> dereference. This was observed with failslab fault injection:
>
> [...]

Here is the summary with links:
- [net,v2] pfcp: fix socket lifetime on netdevice registration failure
https://git.kernel.org/netdev/net/c/0f17d2e3dd9c

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