]> www.infradead.org Git - users/dwmw2/linux.git/commit
ipv6: Hold rtnl_net_lock() in addrconf_init() and addrconf_cleanup().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Wed, 15 Jan 2025 08:06:02 +0000 (17:06 +0900)
committerJakub Kicinski <kuba@kernel.org>
Mon, 20 Jan 2025 20:16:05 +0000 (12:16 -0800)
commitcdc5c1196ee9bcb12979d2599ed00dc187d989f1
treedc70927ec4242132baa3e79bc51809fc7eb5c821
parent02cdd78b4e8d411163327ecfdd54c3208baebc0e
ipv6: Hold rtnl_net_lock() in addrconf_init() and addrconf_cleanup().

addrconf_init() holds RTNL for blackhole_netdev, which is the global
device in init_net.

addrconf_cleanup() holds RTNL to clean up devices in init_net too.

Let's use rtnl_net_lock(&init_net) there.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250115080608.28127-6-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/addrconf.c