All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Duoming Zhou <duoming@zju.edu.cn>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
	jejb@linux.ibm.com, martin.petersen@oracle.com, kuba@kernel.org,
	john.garry@huawei.com, gregkh@linuxfoundation.org,
	davem@davemloft.net
Subject: Re: [PATCH] scsi: libsas: fix use-after-free bug in smp_execute_task_sg
Date: Sun, 25 Sep 2022 12:56:44 -0400	[thread overview]
Message-ID: <yq15yhbs890.fsf@ca-mkp.ca.oracle.com> (raw)
In-Reply-To: <20220920144213.10536-1-duoming@zju.edu.cn> (Duoming Zhou's message of "Tue, 20 Sep 2022 22:42:13 +0800")


Duoming,

> When executing SMP task failed, the smp_execute_task_sg() calls
> del_timer() to delete the "slow_task->timer". However, if the timer
> handler sas_task_internal_timedout() is running, the del_timer() in
> smp_execute_task_sg() will not stop it and the UAF bug will happen.

Applied to 6.1/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

      parent reply	other threads:[~2022-09-25 16:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-20 14:42 [PATCH] scsi: libsas: fix use-after-free bug in smp_execute_task_sg Duoming Zhou
2022-09-22 14:06 ` Jason Yan
2022-09-24  2:46   ` duoming
2022-09-25 16:56 ` 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=yq15yhbs890.fsf@ca-mkp.ca.oracle.com \
    --to=martin.petersen@oracle.com \
    --cc=davem@davemloft.net \
    --cc=duoming@zju.edu.cn \
    --cc=gregkh@linuxfoundation.org \
    --cc=jejb@linux.ibm.com \
    --cc=john.garry@huawei.com \
    --cc=kuba@kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.