Re: [PATCH net] net: atl1c: cancel the common_task work in atl1c_remove()

From: Federico Musto

Date: Wed Nov 25 2026 - 07:13:45 EST


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.