[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7fe79d84-70ba-5bad-58ed-6bfa1a28e555@gmail.com>
Date: Wed, 15 Jan 2025 11:04:58 +0000
From: Edward Cree <ecree.xilinx@...il.com>
To: Antoine Tenart <atenart@...nel.org>, Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, pabeni@...hat.com, edumazet@...gle.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net] net: avoid race between device unregistration and
set_channels
On 15/01/2025 09:41, Antoine Tenart wrote:
> Quoting Edward Cree (2025-01-15 03:51:12)
>> Would __dev_ethtool() need a similar check?
>
> It doesn't because it calls __dev_get_by_name() and returns -ENODEV in
> case dismantle started.
>
So, to check I'm understanding correctly - this is because
ethnl_default_set_doit() calls ethnl_parse_header_dev_get()
before it takes rtnl, whereas ethtool takes rtnl before it
calls __dev_get_by_name()?
Subtle enough difference that the commit message should
probably explain it.
Powered by blists - more mailing lists