Reviewed-by: Eddie Dong
> -Original Message-
> From: Qemu-devel bounces+eddie.dong=intel@nongnu.org> On Behalf Of Yajun Wu
> Sent: Wednesday, May 25, 2022 8:49 PM
> To: qemu-devel@nongnu.org; m...@redhat.com; alex.ben...@linaro.org;
> yaj...@nvidia.com
> Cc: Parav Pandit
> Subject:
u.org; m...@redhat.com; Parav Pandit
Subject: Re: [PATCH] virtio/vhost-user: Fix wrong vhost notifier GPtrArray size
External email: Use caution opening links or attachments
Yajun Wu writes:
> In fetch_or_create_notifier, idx begins with 0. So the GPtrArray size
> should be
Yajun Wu writes:
> In fetch_or_create_notifier, idx begins with 0. So the GPtrArray size
> should be idx + 1 and g_ptr_array_set_size should be called with idx + 1.
>
> This wrong GPtrArray size causes fetch_or_create_notifier return an invalid
> address. Passing this invalid pointer to vhost_u