[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250104063735.36945-1-kuniyu@amazon.com>
Date: Sat, 4 Jan 2025 15:37:31 +0900
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: "David S. Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
<pabeni@...hat.com>, Simon Horman <horms@...nel.org>
CC: Kuniyuki Iwashima <kuniyu@...zon.com>, Kuniyuki Iwashima
<kuni1840@...il.com>, <netdev@...r.kernel.org>
Subject: [PATCH v1 net-next 0/4] net: Hold per-netns RTNL during netdev notifier registration.
Patch 1 converts the global netdev notifier to blocking_notifier,
which will be called under per-netns RTNL without RTNL, then we
need to protect the ongoing netdev_chain users from unregistration.
Patch 2 ~ 4 adds per-netns RTNL for registration of the global
and per-netns netdev notifiers.
Kuniyuki Iwashima (4):
net: Convert netdev_chain to blocking_notifier.
net: Hold __rtnl_net_lock() in (un)?register_netdevice_notifier().
net: Hold rtnl_net_lock() in (un)?register_netdevice_notifier_net().
net: Hold rtnl_net_lock() in
(un)?register_netdevice_notifier_dev_net().
net/core/dev.c | 48 +++++++++++++++++++++++++++++++-----------------
1 file changed, 31 insertions(+), 17 deletions(-)
--
2.39.5 (Apple Git-154)
Powered by blists - more mailing lists