From: 张浩然 <wh1sper@zju.edu.cn>
To: "Mike Christie" <michael.christie@oracle.com>
Cc: mst@redhat.com, jasowang@redhat.com, pbonzini@redhat.com,
stefanha@redhat.com, eperezma@redhat.com,
virtualization@lists.linux.dev, kvm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: Re: [PATCH] vhost/scsi: Fix improper cleanup in vhost_scsi_set_endpoint()
Date: Sun, 19 Jan 2025 18:54:15 +0800 (GMT+08:00) [thread overview]
Message-ID: <3dde608f.568.1947e32f3b0.Coremail.wh1sper@zju.edu.cn> (raw)
In-Reply-To: <41925d66-f4b5-4f96-93f6-b29437399005@oracle.com>
On 2025-01-18 01:11:01, Mike Christie wrote:
> I can't tell if being able to call VHOST_SCSI_SET_ENDPOINT multiple
> times without calling VHOST_SCSI_CLEAR_ENDPOINT between calls is an
> actual feature that the code was trying to support or that is the
> root bug. It's so buggy I feel like it was never meant to be called
> like this so we should just add a check at the beginning of the function.
Sure, proceed as you prefer (Maintaining a 12-year-old codebase seems quite troublesome). My suggestion would be to increase the constant VHOST_SCSI_ABI_VERSION if there are API changes, so that userspace can recognize the new version through the VHOST_SCSI_GET_ABI_VERSION command of ioctl.
> The worry would be that if there are userspace tools doing this
> and living with the bugs then the above patch would add a regression.
> However, I think that's highly unlikely because of how useless/buggy
> it is.
Agreed. CVE-2024-49863 has shown that no successful SCSI AN requests have been sent from a guest to a vhost-scsi device for years.
next prev parent reply other threads:[~2025-01-19 10:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-11 3:34 Haoran Zhang
2025-01-11 5:45 ` Kuan-Wei Chiu
2025-01-11 8:14 ` 张浩然
2025-01-12 17:35 ` michael.christie
2025-01-12 21:19 ` Mike Christie
2025-01-14 2:17 ` Lei Yang
2025-01-14 8:41 ` 张浩然
2025-01-14 11:26 ` Michael S. Tsirkin
2025-01-14 17:13 ` Mike Christie
2025-01-14 7:40 ` 张浩然
2025-01-14 17:44 ` Mike Christie
2025-01-17 11:42 ` Haoran Zhang
2025-01-17 16:50 ` Mike Christie
2025-01-17 17:11 ` Mike Christie
2025-01-19 10:54 ` 张浩然 [this message]
2025-01-19 6:50 ` 张浩然
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=3dde608f.568.1947e32f3b0.Coremail.wh1sper@zju.edu.cn \
--to=wh1sper@zju.edu.cn \
--cc=eperezma@redhat.com \
--cc=jasowang@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.christie@oracle.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=stefanha@redhat.com \
--cc=virtualization@lists.linux.dev \
/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®