[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aBlhiI7V0EQWEmzk@mini-arch>
Date: Mon, 5 May 2025 18:10:32 -0700
From: Stanislav Fomichev <stfomichev@...il.com>
To: Cosmin Ratiu <cratiu@...dia.com>
Cc: netdev@...r.kernel.org, Stanislav Fomichev <sdf@...ichev.me>,
"David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
"jiri @ resnulli . us" <jiri@...nulli.us>,
Saeed Mahameed <saeedm@...dia.com>,
Dragos Tatulea <dtatulea@...dia.com>,
linux-kselftest@...r.kernel.org
Subject: Re: [PATCH net] net: Lock netdevices during dev_shutdown
On 05/05, Cosmin Ratiu wrote:
> __qdisc_destroy() calls into various qdiscs .destroy() op, which in turn
> can call .ndo_setup_tc(), which requires the netdev instance lock.
>
> This commit extends the critical section in
> unregister_netdevice_many_notify() to cover dev_shutdown() (and
> dev_tcx_uninstall() as a side-effect) and acquires the netdev instance
> lock in __dev_change_net_namespace() for the other dev_shutdown() call.
>
> This should now guarantee that for all qdisc ops, the netdev instance
> lock is held during .ndo_setup_tc().
>
> Fixes: a0527ee2df3f ("net: hold netdev instance lock during qdisc ndo_setup_tc")
> Signed-off-by: Cosmin Ratiu <cratiu@...dia.com>
Acked-by: Stanislav Fomichev <sdf@...ichev.me>
Thanks!
Powered by blists - more mailing lists