From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Duoming Zhou <duoming@zju.edu.cn>
Cc: <linux-scsi@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<James.Bottomley@HansenPartnership.com>,
<martin.petersen@oracle.com>, <christophe.jaillet@wanadoo.fr>,
<mingo@kernel.org>, <tglx@linutronix.de>, <linux@treblig.org>,
<fourier.thomas@gmail.com>
Subject: Re: [PATCH] scsi: mvsas: Fix use-after-free bugs in mvs_work_queue
Date: Mon, 29 Sep 2025 17:27:52 -0400 [thread overview]
Message-ID: <yq13485ne44.fsf@ca-mkp.ca.oracle.com> (raw)
In-Reply-To: <20250920134201.18428-1-duoming@zju.edu.cn> (Duoming Zhou's message of "Sat, 20 Sep 2025 21:42:01 +0800")
Duoming,
> During the detaching of Marvell's SAS/SATA controller, the origin code
> calls cancel_delayed_work() in mvs_free() to cancel the delayed work
> item mwq->work_q. However, if mwq->work_q is already running, the
> cancel_delayed_work() may fail to cancel it. This can lead to
> use-after-free scenarios where mvs_free() frees the mvs_info while
> mvs_work_queue() is still executing and attempts to access the
> already-freed mvs_info.
Applied to 6.18/scsi-staging, thanks!
--
Martin K. Petersen
prev parent reply other threads:[~2025-09-29 21:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-20 13:42 Duoming Zhou
2025-09-29 21:27 ` 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=yq13485ne44.fsf@ca-mkp.ca.oracle.com \
--to=martin.petersen@oracle.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=duoming@zju.edu.cn \
--cc=fourier.thomas@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux@treblig.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
/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
Powered by JetHome