Re: [PATCH v3 0/2] scsi: leapraid: fix firmware log mmap lifetime

"Martin K. Petersen (Oracle)" <[email protected]>
Newsgroups org.kernel.vger.linux-scsi,org.kernel.vger.linux-kernel
Message-ID <178775714074.3862282.15182194686976756373.b4-ty@b4>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.