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"
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"
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
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
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
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