[PATCH v2 2/2] vhost: fix uninitialized VQ info in VDUSE vring setup
David Marchand
david.marchand at redhat.com
Wed Oct 1 10:43:07 CEST 2025
On Tue, 16 Sept 2025 at 11:36, Maxime Coquelin
<maxime.coquelin at redhat.com> wrote:
>
> Initialize vduse_vq_info structure to zero to avoid using
> uninitialized memory when setting up VDUSE virtual rings.
> This ensures all fields start with known values.
>
> Fixes: a9120db8b98b ("vhost: add VDUSE device startup")
> Cc: stable at dpdk.org
>
> Reported-by: David Marchand <david.marchand at redhat.com>
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
There may be similar issues for ioctl != VDUSE_VQ_GET_INFO.
But this patch itself lgtm.
Reviewed-by: David Marchand <david.marchand at redhat.com>
--
David Marchand
More information about the dev
mailing list