]> git.ipfire.org Git - thirdparty/qemu.git/commit
s390x/virtio-hcall: Add range check for hypervisor call
authorThomas Huth <thuth@linux.vnet.ibm.com>
Mon, 13 Jan 2014 08:26:49 +0000 (09:26 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 25 Jun 2014 16:11:45 +0000 (11:11 -0500)
commit91ae1d30ec5b3b8826c2f9e3742e1d52f2fadb0b
tree6df1a4403c6b476a4c5a2bfd1408c20dab95fff4
parent0a77a92d74f98e4898cb54c945ada84768427851
s390x/virtio-hcall: Add range check for hypervisor call

The handler for diag 500 did not check whether the requested function
was in the supported range, so illegal values could crash QEMU in the
worst case.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
CC: qemu-stable@nongnu.org
(cherry picked from commit f2c55d1735175ab37ab9f69854460087112d2756)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/s390x/s390-virtio-hcall.c