RE: [PATCH] virtio/vhost-user: Fix wrong vhost notifier GPtrArray size

2022-06-15 Thread Dong, Eddie
rav Pandit > Subject: [PATCH] virtio/vhost-user: Fix wrong vhost notifier GPtrArray size > > 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 fet

RE: [PATCH] virtio/vhost-user: Fix wrong vhost notifier GPtrArray size

2022-06-13 Thread Yajun Wu
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

Re: [PATCH] virtio/vhost-user: Fix wrong vhost notifier GPtrArray size

2022-05-26 Thread Alex Bennée
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

[PATCH] virtio/vhost-user: Fix wrong vhost notifier GPtrArray size

2022-05-25 Thread Yajun Wu
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_user_host_notifier_remove cause