Searched hist:c44317efecb240b9b0951ad46ba56eb547114f1d (Results 1 – 2 of 2) sorted by relevance
/qemu/include/hw/virtio/ |
H A D | vhost.h | c44317efecb240b9b0951ad46ba56eb547114f1d Fri Jan 19 10:39:18 UTC 2018 Dr. David Alan Gilbert <dgilbert@redhat.com> vhost: Build temporary section list and deref after commit
Igor spotted that there's a race, where a region that's unref'd in a _del callback might be free'd before the set_mem_table call in the _commit callback, and thus the vhost might end up using free memory.
Fix this by building a complete temporary sections list, ref'ing every section (during add and nop) and then unref'ing the whole list right at the end of commit.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
/qemu/hw/virtio/ |
H A D | vhost.c | c44317efecb240b9b0951ad46ba56eb547114f1d Fri Jan 19 10:39:18 UTC 2018 Dr. David Alan Gilbert <dgilbert@redhat.com> vhost: Build temporary section list and deref after commit
Igor spotted that there's a race, where a region that's unref'd in a _del callback might be free'd before the set_mem_table call in the _commit callback, and thus the vhost might end up using free memory.
Fix this by building a complete temporary sections list, ref'ing every section (during add and nop) and then unref'ing the whole list right at the end of commit.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|