mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wentao Liang <vulab@iscas.ac.cn>
To: John Garry <john.garry@linux.dev>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>,
	Dan Williams <djbw@kernel.org>,
	Martin K. Petersen <martin.petersen@oracle.com>,
	Jason Yan <yanaijie@huawei.com>,
	linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
	vulab@iscas.ac.cn
Subject: Re: [PATCH] scsi: libsas: Fix use-after-free in sas_suspend_devices()
Date: Sun, 08 Nov 2026 11:40:40 +0000	[thread overview]
Message-ID: <20261108114040.216100-vulab@iscas.ac.cn> (raw)
In-Reply-To: <b0e2de23-7421-4217-bd37-e98e59bef873@linux.dev>

Hi John,

Sorry for the very late reply.

You are right: the reference held while the device sits on port->dev_list
keeps it alive, and an LLD never owns such a reference, so
list_for_each_entry_safe() would not fix anything. Please drop this patch;
I am withdrawing it and will not send a v2.

The candidate came from a static-analysis run audited with DeepSeek and
GPT-6.1 Sol, and it is a false positive on our side.

Thanks for taking the time to review the patch,
Wentao


      reply	other threads:[~2026-11-08 12:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-17 14:38 Wentao Liang
2026-09-17 16:45 ` John Garry
2026-11-08 11:40   ` Wentao Liang [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=20261108114040.216100-vulab@iscas.ac.cn \
    --to=vulab@iscas.ac.cn \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=djbw@kernel.org \
    --cc=john.garry@linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=yanaijie@huawei.com \
    /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

all inboxes | Powered by JetHome®