From: Federico Musto <federico@rimpianto.com>
To: netdev-bot+sinfo@kernel.org
Cc: Federico Musto <federico@rimpianto.com>,
Chris Snook <chris.snook@gmail.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH net] net: atl1c: cancel the common_task work in atl1c_remove()
Date: Wed, 25 Nov 2026 13:13:29 +0100 [thread overview]
Message-ID: <20261125121329.2679-1-federico@rimpianto.com> (raw)
In-Reply-To: <179560665678.3294.8918626244463796277@kernel.org>
The change was not tested on real hardware. The use-after-free window
- a link-change interrupt re-queueing common_task between the
cancel_work_sync() in atl1c_close() and free_irq() - was found by code
inspection and has not been reproduced.
It was build-tested on x86_64 against netdev/net with W=1 and sparse,
with no new warnings.
For context, the hardware I have for this driver is a MikroTik
CCR2004-1G-2XS-PCIe, whose SoC exposes emulated AR8151 v2.0 functions
[1969:1083] rather than a discrete Atheros controller. The related
two-patch series posted alongside this patch was runtime-tested there
through a DKMS port with diagnostic counters (27 link-down events,
~4.3 GiB of traffic, the link recovered every time), but that build
does not include this change, and the remove/unbind path was not
exercised on the card.
prev parent reply other threads:[~2026-11-25 12:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 11:31 Federico Musto
2026-11-25 11:37 ` netdev-bot+sinfo
2026-11-25 12:13 ` Federico Musto
2026-11-25 12:13 ` Federico Musto [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261125121329.2679-1-federico@rimpianto.com \
--to=federico@rimpianto.com \
--cc=andrew+netdev@lunn.ch \
--cc=chris.snook@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev-bot+sinfo@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®