qemu-e2k/hw/s390x
Alexander Yarygin 9946a9113c s390x/ipl: Add type and length checks for IplParameterBlock values
We can check for valid type and lengths of the IplParameterBlock fields
when receiving the struct from the guest.

Length of the IplParameterBlock can be less than 4K. To play safe we can
read and write only required amount of data.

Signed-off-by: Alexander Yarygin <yarygin@linux.vnet.ibm.com>
Reviewed-by: David Hildenband <dahi@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2016-05-17 15:50:29 +02:00
..
css.c s390x/css: only suspend when enabled by orb 2016-03-01 12:15:29 +01:00
css.h s390x/css: introduce indicator refcounting interfaces 2016-03-01 12:15:28 +01:00
event-facility.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
ipl.c s390x/ipl: Extend the IplParameterBlock struct 2016-05-17 15:50:29 +02:00
ipl.h s390x/ipl: Add type and length checks for IplParameterBlock values 2016-05-17 15:50:29 +02:00
Makefile.objs
s390-pci-bus.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
s390-pci-bus.h s390x/pci: fix reg/dereg irq functions 2016-03-01 12:15:29 +01:00
s390-pci-inst.c hw: explicitly include qemu-common.h and cpu.h 2016-03-22 22:20:17 +01:00
s390-pci-inst.h
s390-skeys-kvm.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
s390-skeys.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
s390-virtio-ccw.c s390x/ipl: Extend the IplParameterBlock struct 2016-05-17 15:50:29 +02:00
s390-virtio-hcall.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
s390-virtio.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
s390-virtio.h s390x/cpu: Cleanup init in preparation for hotplug 2016-03-10 10:37:15 +01:00
sclp.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
sclpcpu.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
sclpquiesce.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
virtio-ccw.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
virtio-ccw.h s390x/css: introduce indicator refcounting interfaces 2016-03-01 12:15:28 +01:00