OSDN Git Service

Ignore pci unplug requests for unpluggable devices (CVE-2011-1751)
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 27 Apr 2011 09:05:34 +0000 (11:05 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 19 May 2011 09:06:49 +0000 (11:06 +0200)
commit505597e4476a6bc219d0ec1362b760d71cb4fdca
treecad818925eb5d7205cf33cfbf8a57a433eb5895c
parent96d19bcbf5f679bbaaeab001b572c367fbfb2b03
Ignore pci unplug requests for unpluggable devices (CVE-2011-1751)

This patch makes qemu ignore unplug requests from the guest for pci
devices which are tagged as non-hotpluggable.  Trouble spot is the
piix4 chipset with the ISA bridge.  Requests to unplug that one will
make it go away together with all ISA bus devices, which are not
prepared to be unplugged and thus don't cleanup, leaving active
qemu timers behind in free'ed memory.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/acpi_piix4.c