Re: [PATCH] vhost: mask the in-order used-ring log cursor
From: fadouse
Date: Thu Dec 03 2026 - 09:49:15 EST
On Thu, Dec 03, 2026 at 03:55:20AM -0500, Michael S. Tsirkin wrote:
> vhost: reject used ring batches larger than the ring
>
> is in stable now, and seems to be the most comprehensive way to address
> this class of issues.
>
> Could you pls confirm it addresses this problem?
Yes, confirmed. I tested 700737df3b82 against the RX reproducer: the
oversized batch is now rejected (VHOST_SET_VRING_ERR signaled,
used->idx = 0) and log_base[1] stays 0x00, while a legal wrapping batch
of size vq->num still works normally.
Thanks for the fix and the Reported-by!
Best regards,
YanXin Li
Attachment:
publickey - fadouse@pm.me - 0x99485AA3.asc
Description: application/pgp-keys
Attachment:
signature.asc
Description: OpenPGP digital signature