]> Git Repo - qemu.git/commit
virtio: check VirtQueue Vring object is set
authorPrasad J Pandit <[email protected]>
Wed, 29 Nov 2017 17:44:27 +0000 (23:14 +0530)
committerMichael S. Tsirkin <[email protected]>
Fri, 1 Dec 2017 17:05:58 +0000 (19:05 +0200)
commit758ead31c7e17bf17a9ef2e0ca1c3e86ab296b43
treebd19c0514a7c1ed1e90bdf6df63d8e28744d3c8b
parent2fe45ec3bffbd3a26f2ed39f60bab0ca5217d8f6
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 <[email protected]>
Signed-off-by: Prasad J Pandit <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
hw/virtio/virtio.c
This page took 0.025345 seconds and 4 git commands to generate.