diff options
author | 2017-11-29 23:14:27 +0530 | |
---|---|---|
committer | 2017-12-01 19:05:58 +0200 | |
commit | 758ead31c7e17bf17a9ef2e0ca1c3e86ab296b43 (patch) | |
tree | bd19c0514a7c1ed1e90bdf6df63d8e28744d3c8b /util/mmap-alloc.c | |
parent | vhost: fix error check in vhost_verify_ring_mappings() (diff) | |
download | qemu-758ead31c7e17bf17a9ef2e0ca1c3e86ab296b43.tar.xz qemu-758ead31c7e17bf17a9ef2e0ca1c3e86ab296b43.zip |
virtio: check VirtQueue Vring object is set
A guest could attempt to use an uninitialised VirtQueue object
or unset Vring.align leading to a arithmetic exception. Add check
to avoid it.
Reported-by: Zhangboxian <zhangboxian@huawei.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'util/mmap-alloc.c')
0 files changed, 0 insertions, 0 deletions