Re: [PATCH net v6 1/4] ice: stop the service task before the PF is unloaded

From: Petr Oros

Date: Wed Dec 02 2026 - 02:15:51 EST


On Tue, 01 Dec 2026 13:23:01 +0000, netdev-bot+sashiko@xxxxxxxxxx wrote:

> - [High] The new early ice_service_task_stop() in ice_remove() does not
> keep the service work from being queued again during teardown.

Right, v7 makes that stop final. It now also disables the work and shuts
the timer down, so a caller that passed the ICE_SERVICE_DIS test can no
longer queue the work, and a run in progress can no longer arm the
timer after its delete. ice_devlink_reinit_down() and the error path of
ice_probe() still stop only once, both are older than commit
8a37f9e2ff40 ("ice: move ice_deinit_dev() to the end of deinit paths")
and are not changed here.

> Pre-existing issues:
> - [High] This problem wasn't introduced by this patch, but it is a high-
> severity sibling of the timer use-after-free the patch fixes, in the…

Right, the recovery mode branch of ice_remove() gets the same final stop
in v7, the shutdown closes the armed timer there too.

pw-bot: cr