]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dev: Hold rtnl_net_lock() for dev_ifsioc().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Wed, 15 Jan 2025 09:55:45 +0000 (18:55 +0900)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jan 2025 01:20:50 +0000 (17:20 -0800)
commitbe94cfdb993ff091ce3b98a16b45795198957f95
treefb21e89872604ac996af35b011eb1aaa7ee882f9
parent2f1bb1e2cc0068b6f5fe992ed3108d89b9b29cf9
dev: Hold rtnl_net_lock() for dev_ifsioc().

Basically, dev_ifsioc() operates on the passed single netns (except
for netdev notifier chains with lower/upper devices for which we will
need more changes).

Let's hold rtnl_net_lock() for dev_ifsioc().

Now that NETDEV_CHANGENAME is always triggered under rtnl_net_lock()
of the device's netns. (do_setlink() and dev_ifsioc())

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250115095545.52709-4-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c
net/core/dev_ioctl.c
net/core/rtnl_net_debug.c