qemu-e2k/hw/acpi
Michael S. Tsirkin d9a3b33d2c acpi: fix buffer overrun on migration
ich calls acpi_gpe_init with length ICH9_PMIO_GPE0_LEN so
ICH9_PMIO_GPE0_LEN/2 bytes are allocated, but then the full
ICH9_PMIO_GPE0_LEN bytes are migrated.

As a quick work-around, allocate twice the memory.
We'll probably want to tweak code to avoid
migrating the extra ICH9_PMIO_GPE0_LEN/2 bytes,
but that is a bit trickier to do without breaking
migration compatibility.

Tested-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Reported-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2015-11-19 15:26:00 +02:00
..
acpi_interface.c
aml-build.c hw/acpi/aml-build: remove useless glib version check 2015-11-06 15:42:37 +03:00
bios-linker-loader.c
core.c acpi: fix buffer overrun on migration 2015-11-19 15:26:00 +02:00
cpu_hotplug.c acpi: add acpi_send_gpe_event() to rise sci for hotplug 2015-06-03 18:19:16 +02:00
ich9.c hw/acpi/ich9: clean up stale comment about KVM not supporting SMM 2015-07-27 22:44:47 +03:00
Makefile.objs ich9: add TCO interface emulation 2015-07-07 13:12:22 +03:00
memory_hotplug.c pc: memhp: do not emit inserting event for coldplugged DIMMs 2015-10-29 11:05:24 +02:00
pcihp.c acpi: add acpi_send_gpe_event() to rise sci for hotplug 2015-06-03 18:19:16 +02:00
piix4.c pc_piix: rename kvm_enabled to smm_enabled 2015-07-06 17:59:44 +02:00
tco.c ich9: implement strap SPKR pin logic 2015-07-08 10:09:55 +03:00