Re: [PATCH v4] scsi: lpfc: Fix race conditions in ELS retry handling
From: Martin K. Petersen (Oracle)
Date: Tue Nov 17 2026 - 23:49:40 EST
On Wed, 11 Nov 2026 11:47:41 -0600, Kyle Mahlkuch wrote:
> This patch addresses a race condition in the lpfc driver's ELS retry
> event handling that can lead to a use-after-free in the
> lpfc_cancel_retry_delay_tmo(), where the NLP_DELAY_TMO flag is cleared
> before acquiring the lock to check if the retry event is queued. This
> creates a window where the timer can be rescheduled and fire, causing
> both the cancel path and the worker thread to release the same reference,
> resulting in a double-put and use-after-free.
>
> [...]
Applied to 7.4/scsi-fixes, thanks!
[1/1] scsi: lpfc: Fix race conditions in ELS retry handling
https://git.kernel.org/mkp/scsi/c/7470a1f2a84d
--
Martin K. Petersen