[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230215223210.0b241a30@kernel.org>
Date: Wed, 15 Feb 2023 22:32:10 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Ido Schimmel <idosch@...dia.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, pabeni@...hat.com,
edumazet@...gle.com, jiri@...dia.com, jacob.e.keller@...el.com,
sfr@...b.auug.org.au, mlxsw@...dia.com
Subject: Re: [PATCH net] devlink: Fix netdev notifier chain corruption
On Wed, 15 Feb 2023 09:31:39 +0200 Ido Schimmel wrote:
> Cited commit changed devlink to register its netdev notifier block on
> the global netdev notifier chain instead of on the per network namespace
> one.
>
> However, when changing the network namespace of the devlink instance,
> devlink still tries to unregister its notifier block from the chain of
> the old namespace and register it on the chain of the new namespace.
> This results in corruption of the notifier chains, as the same notifier
> block is registered on two different chains: The global one and the per
> network namespace one. In turn, this causes other problems such as the
> inability to dismantle namespaces due to netdev reference count issues.
Reviewed-by: Jakub Kicinski <kuba@...nel.org>
Powered by blists - more mailing lists