]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: update netdev_lock_{type,name}
authorEric Dumazet <edumazet@google.com>
Thu, 8 Jan 2026 09:32:44 +0000 (09:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:18:37 +0000 (11:18 +0100)
commitdfd1f962f2773e18ecb88f7ad129bddaff591a44
treeb2d0e29cda340cd21f7aac34d7877edcccb18424
parentdf5ffde9669314500809bc498ae73d6d3d9519ac
net: update netdev_lock_{type,name}

[ Upstream commit eb74c19fe10872ee1f29a8f90ca5ce943921afe9 ]

Add missing entries in netdev_lock_type[] and netdev_lock_name[] :

CAN, MCTP, RAWIP, CAIF, IP6GRE, 6LOWPAN, NETLINK, VSOCKMON,
IEEE802154_MONITOR.

Also add a WARN_ONCE() in netdev_lock_pos() to help future bug hunting
next time a protocol is added without updating these arrays.

Fixes: 1a33e10e4a95 ("net: partially revert dynamic lockdep key changes")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260108093244.830280-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/dev.c