[PATCH V4] virtio/vhost-user: fix qemu abort when hotunplug vhost-user-net device

2024-10-11 Thread yaozhenguo
ign VhostUserHostNotifiers") Signed-off-by: yaozhenguo --- V1->V2: add n->addr check in vhost_user_get_vring_base and vhost_user_backend_handle_vring_host_notifier to prevent submit same node to rcu list. V2->V3: 1. change "free" to "destroy"

[PATCH V3] virtio/vhost-user: fix qemu abort when hotunplug vhost-user-net device

2024-10-09 Thread yaozhenguo
dynamically assign VhostUserHostNotifiers") Signed-off-by: yaozhenguo --- V1->V2: add n->addr check in vhost_user_get_vring_base and vhost_user_backend_handle_vring_host_notifier to prevent submit same node to rcu list. V2->V3: 1. change "free"

[PATCH V2] virtio/vhost-user: fix qemu abort when hotunplug vhost-user-net device

2024-09-19 Thread yaozhenguo
ur. So, it is necessary to merge g_free_rcu and vhost_user_host_notifier_free into one rcu node. Fixes: 503e355465 ("virtio/vhost-user: dynamically assign VhostUserHostNotifiers") Signed-off-by: yaozhenguo --- V1->V2: add n->addr check in vhost_user_get_vring_base and vhost_user_backen

[PATCH V1] virtio/vhost-user: fix qemu abort when hotunplug vhost-user-net device

2024-09-13 Thread yaozhenguo
ur. So, it is necessary to merge g_free_rcu and vhost_user_host_notifier_free into one rcu node. Fixes: 503e355465 ("virtio/vhost-user: dynamically assign VhostUserHostNotifiers") Signed-off-by: yaozhenguo --- hw/virtio/vhost-user.c | 34 ++ include/hw/v

[PATCH] qio: fix qemu crash when live migration

2024-08-07 Thread yaozhenguo
is used after free. fix this by adding more checks. Signed-off-by: yaozhenguo --- io/net-listener.c | 13 + 1 file changed, 13 insertions(+) diff --git a/io/net-listener.c b/io/net-listener.c index 47405965a6..c02965f919 100644 --- a/io/net-listener.c +++ b/io/net-listener.c @@ -14

[PATCH] virtio/vhost-user: fix qemu crash when hotunplug vhost-user-net device

2024-08-07 Thread yaozhenguo
to vhost_user_host_notifier_free. Fixes: 503e355465 ("virtio/vhost-user: dynamically assign VhostUserHostNotifiers") Signed-off-by: yaozhenguo --- hw/virtio/vhost-user.c | 23 +++ include/hw/virtio/vhost-user.h | 1 + 2 files changed, 12 insertions(+), 12 deletions(-) di