Re: [PATCH v3 0/2] scsi: leapraid: fix firmware log mmap lifetime
From: Martin K. Petersen (Oracle)
Date: Wed Aug 26 2026 - 11:23:10 EST
On Fri, 14 Aug 2026 11:38:43 +0800, Linmao Li wrote:
> The firmware log mmap path has two related lifetime issues. VMA clones
> drop Scsi_Host references that they never acquired, and device removal
> can free the coherent log buffer while mmap is still setting up a VMA.
>
> Patch 1 gives each VMA its own host device reference. Patch 2 claims a
> temporary mmap activity reference under the adapter-list lock so teardown
> cannot miss an in-progress mapping.
>
> [...]
Applied to 7.3/scsi-queue, thanks!
[1/2] scsi: leapraid: balance host references for firmware log VMAs
https://git.kernel.org/mkp/scsi/c/970f69b6bf71
[2/2] scsi: leapraid: serialize firmware log mmap with teardown
https://git.kernel.org/mkp/scsi/c/00b7c8d4ce44
--
Martin K. Petersen