From: sashiko-bot@kernel.org
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: virtualization@lists.linux.dev, "Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH] vhost: reject used ring batches larger than the ring
Date: Tue, 01 Dec 2026 22:24:37 +0000 [thread overview]
Message-ID: <sashiko-outbox-244342@kernel.org> (raw)
In-Reply-To: <66327153423e98bd10778bac1f29c26ba633e02a.1796163071.git.mst@redhat.com>
> A compliant driver never has more than vq->num buffers in flight at
> once, so a batch accumulated before used->idx advances never exceeds
> vq->num.
>
> Reject used count > vq->num in
> vhost_add_used_n()/vhost_add_used_n_in_order().
>
> Cc: stable@vger.kernel.org
> Reported-by: Seohyeon Maeng <bioloidgp@gmail.com>
> Reported-by: minki@morningstarsec.dev
> Reported-by: YanXin Li <fadouse@pm.me>
> Fixes: e2b3b35eb989 ("vhost_net: batch used ring update in rx")
> Fixes: 4afb52c2af44 ("vhost_net: batch update used ring for datacopy TX")
> Fixes: bfcde6b64769 ("vhost: fix dirty logging for in-order used ring entries")
> Cc: Jason Wang <jasowangio@gmail.com>
> Cc: Eugenio Pérez <eperezma@redhat.com>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/66327153423e98bd10778bac1f29c26ba633e02a.1796163071.git.mst@redhat.com?part=1
next prev parent reply other threads:[~2026-12-01 22:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 22:18 [PATCH] vhost: reject used ring batches larger than the ring Michael S. Tsirkin
2026-12-01 22:24 ` sashiko-bot [this message]
2026-12-02 8:15 ` Eugenio Perez Martin
2026-12-02 8:33 ` Michael S. Tsirkin
2026-12-02 17:58 ` Dongli Zhang
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=sashiko-outbox-244342@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=eperezma@redhat.com \
--cc=mst@redhat.com \
--cc=sashiko-reviews@lists.linux.dev \
--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