Re: [PATCH net v4 2/2] net: atl1c: free the RX buffer when the descriptor reports an error
From: Federico Musto
Date: Wed Nov 25 2026 - 06:35:15 EST
Thank you for the review. The findings are addressed in v5 of the
series, posted here:
https://lore.kernel.org/netdev/20261125113120.99743-1-federico@xxxxxxxxxxxxx/
[Medium] Missing dma_rmb() between the valid-bit test and word0.
Correct, and material for this patch as argued: word0 now decides
whether a reset is scheduled and the ring is zeroed after a reset, so
a stale zeroed word0 would schedule a spurious reset on weakly ordered
CPUs. v5 adds dma_rmb() after the RRS_RXD_IS_VALID(word3) test and
before the remaining descriptor reads.
[High, pre-existing, new trigger] schedule_work() lifetime.
Correct, and since v5 adds one more producer of common_task, the
missing cancel in atl1c_remove() is now fixed by a separate one-line
patch posted alongside this series:
https://lore.kernel.org/netdev/20261125113141.99792-1-federico@xxxxxxxxxxxxx/
It adds cancel_work_sync(&adapter->common_task) after
unregister_netdev(), where the IRQ is freed, NAPI is disabled and the
TX watchdog is stopped, so nothing can queue the work again.
[High, pre-existing] common_task reset path serialization.
Acknowledged and still deferred: a full fix requires reworking the
serialisation of the work item against the rtnl holders - the same
deadlock is why patch 1/2 does not use napi_disable(), as its
changelog explains. Planned as a separate series.