[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<174913683626.3113343.2498396599502227239.git-patchwork-notify@kernel.org>
Date: Thu, 05 Jun 2025 15:20:36 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Eric Dumazet <edumazet@...gle.com>
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com, horms@...nel.org,
netdev@...r.kernel.org, eric.dumazet@...il.com,
syzbot+9fc858ba0312b42b577e@...kaller.appspotmail.com, sdf@...ichev.me
Subject: Re: [PATCH net] net: prevent a NULL deref in rtnl_create_link()
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Wed, 4 Jun 2025 10:58:15 +0000 you wrote:
> At the time rtnl_create_link() is running, dev->netdev_ops is NULL,
> we must not use netdev_lock_ops() or risk a NULL deref if
> CONFIG_NET_SHAPER is defined.
>
> Use netif_set_group() instead of dev_set_group().
>
> RIP: 0010:netdev_need_ops_lock include/net/netdev_lock.h:33 [inline]
> RIP: 0010:netdev_lock_ops include/net/netdev_lock.h:41 [inline]
> RIP: 0010:dev_set_group+0xc0/0x230 net/core/dev_api.c:82
> Call Trace:
> <TASK>
> rtnl_create_link+0x748/0xd10 net/core/rtnetlink.c:3674
> rtnl_newlink_create+0x25c/0xb00 net/core/rtnetlink.c:3813
> __rtnl_newlink net/core/rtnetlink.c:3940 [inline]
> rtnl_newlink+0x16d6/0x1c70 net/core/rtnetlink.c:4055
> rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6944
> netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2534
> netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline]
> netlink_unicast+0x75b/0x8d0 net/netlink/af_netlink.c:1339
> netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1883
> sock_sendmsg_nosec net/socket.c:712 [inline]
>
> [...]
Here is the summary with links:
- [net] net: prevent a NULL deref in rtnl_create_link()
https://git.kernel.org/netdev/net/c/feafc73f3e6a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists