From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: linux-scsi@vger.kernel.org, Duoming Zhou <duoming@zju.edu.cn>
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>,
linux-kernel@vger.kernel.org,
James.Bottomley@HansenPartnership.com
Subject: Re: [PATCH] scsi: imm: fix use-after-free bugs caused by unfinished delayed work
Date: Mon, 8 Dec 2025 22:21:02 -0500 [thread overview]
Message-ID: <176524933130.418581.8604572296942599990.b4-ty@oracle.com> (raw)
In-Reply-To: <20251028100149.40721-1-duoming@zju.edu.cn>
On Tue, 28 Oct 2025 18:01:49 +0800, Duoming Zhou wrote:
> The delayed work item imm_tq is initialized in imm_attach() and
> scheduled via imm_queuecommand() for processing SCSI commands.
> When the IMM parallel port SCSI host adapter is detached through
> imm_detach(), the imm_struct device instance is deallocated.
>
> However, the delayed work might still be pending or executing
> when imm_detach() is called, leading to use-after-free bugs
> when the work function imm_interrupt() accesses the already
> freed imm_struct memory.
>
> [...]
Applied to 6.19/scsi-queue, thanks!
[1/1] scsi: imm: fix use-after-free bugs caused by unfinished delayed work
https://git.kernel.org/mkp/scsi/c/ab58153ec64f
--
Martin K. Petersen
prev parent reply other threads:[~2025-12-09 3:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-28 10:01 [PATCH] scsi: imm: fix use-after-free bugs caused by unfinished delayed work Duoming Zhou
2025-11-29 20:43 ` Martin K. Petersen
2025-12-09 3:21 ` Martin K. Petersen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=176524933130.418581.8604572296942599990.b4-ty@oracle.com \
--to=martin.petersen@oracle.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=duoming@zju.edu.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox