Re: [PATCH v2] scsi: dc395x: sync the waiting_timer before freeing the host

From: Martin K. Petersen (Oracle)

Date: Mon Oct 05 2026 - 22:44:58 EST


On Fri, 11 Sep 2026 02:05:44 +0000, Fan Wu wrote:

> The waiting_timer callback re-arms itself and takes the host lock.
> adapter_uninit() currently stops it with timer_delete(), which does not
> wait for a callback already running on another CPU. The final
> scsi_host_put() that frees the host (and the host lock the callback
> dereferences) runs right after adapter_uninit(), so a concurrent or just
> re-armed callback can fire after the free, leaving a potential
> use-after-free window.
>
> [...]

Applied to 7.4/scsi-queue, thanks!

[1/1] scsi: dc395x: sync the waiting_timer before freeing the host
https://git.kernel.org/mkp/scsi/c/0b1a79f2791a

--
Martin K. Petersen