Re: [PATCH net-next] net/af_packet: registration process optimization in packet_init()

From: patchwork-bot+netdevbpf
Date: Wed Sep 21 2022 - 08:00:30 EST


Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Thu, 15 Sep 2022 09:08:35 +0800 you wrote:
> Now, register_pernet_subsys() and register_netdevice_notifier() are both
> after sock_register(). It can create PF_PACKET socket and process socket
> once sock_register() successfully. It is possible PF_PACKET socket is
> creating but register_pernet_subsys() and register_netdevice_notifier()
> are not registered yet. Thus net->packet.sklist_lock and net->packet.sklist
> will be accessed without initialization that is done in packet_net_init().
> Although this is a low probability scenario.
>
> [...]

Here is the summary with links:
- [net-next] net/af_packet: registration process optimization in packet_init()
https://git.kernel.org/netdev/net-next/c/63b7c2ebcc1d

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