From: sashiko-bot@kernel.org
To: "YanXin Li" <fadouse@pm.me>
Cc: virtualization@lists.linux.dev,
"Michael S. Tsirkin" <mst@redhat.com>,
"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH] vhost: mask the in-order used-ring log cursor
Date: Sun, 22 Nov 2026 13:22:50 +0000 [thread overview]
Message-ID: <sashiko-outbox-227961@kernel.org> (raw)
In-Reply-To: <20261122-b4-06-vhost-in-order-log-oob-v1-35efdba8fbab-v1-1-fc1253d60351@pm.me>
> From: YanXin Li <fadouse@pm.me>
>
> vhost_add_used_n_in_order() plays the batch of used-ring writes back a
> second time for dirty logging. Commit e244725e86be ("vhost: fix used
> ring index wrap in vhost_add_used_n_in_order") masked the index in the
> descriptor-publishing loop. The dirty-logging loop introduced by
> bfcde6b64769 still uses the single-subtraction form
>
> next = start + nheads[i];
> if (next >= vq->num)
> next -= vq->num;
>
> If the guest refills the available ring while get_rx_bufs() collects
> one mergeable-RX packet, that packet can consume more heads than
> vq->num. get_rx_bufs() permits up to UIO_MAXIOV = 1024 descriptor
> [ ... ]
> UBSAN, lockdep, and DEBUG_OBJECTS.
>
> Fixes: bfcde6b64769 ("vhost: fix dirty logging for in-order used ring entries")
> Cc: stable@vger.kernel.org
> Signed-off-by: YanXin Li <fadouse@pm.me>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261122-b4-06-vhost-in-order-log-oob-v1-35efdba8fbab-v1-1-fc1253d60351@pm.me?part=1
next prev parent reply other threads:[~2026-11-22 13:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 13:19 [PATCH] vhost: mask the in-order used-ring log cursor YanXin Li via B4 Relay
2026-11-22 13:19 ` YanXin Li
2026-11-22 13:22 ` sashiko-bot [this message]
2026-11-23 7:51 ` Jiaming Fan
2026-11-23 12:31 ` fadouse
2026-11-23 12:26 ` Eugenio Perez Martin
2026-11-23 12:44 ` fadouse
2026-11-27 16:51 ` Jiaming Fan
2026-12-01 8:34 ` fadouse
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-227961@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=eperezma@redhat.com \
--cc=fadouse@pm.me \
--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 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.