aboutsummaryrefslogtreecommitdiff
path: root/replication.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2017-03-15 19:48:31 +0800
committerMichael S. Tsirkin <mst@redhat.com>2017-03-15 19:37:19 +0200
commite0e2d644096c79a71099b176d08f465f6803a8b1 (patch)
tree42fa2c2a31fc6f9ad7c845dab82010b712413729 /replication.c
parent168e4af3c129534ee7d81edc238a9aa9ca0dd474 (diff)
downloadqemu-e0e2d644096c79a71099b176d08f465f6803a8b1.zip
qemu-e0e2d644096c79a71099b176d08f465f6803a8b1.tar.gz
qemu-e0e2d644096c79a71099b176d08f465f6803a8b1.tar.bz2
virtio: destroy region cache during reset
We don't destroy region cache during reset which can make the maps of previous driver leaked to a buggy or malicious driver that don't set vring address before starting to use the device. Fix this by destroy the region cache during reset and validate it before trying to see them. Cc: Cornelia Huck <cornelia.huck@de.ibm.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'replication.c')
0 files changed, 0 insertions, 0 deletions