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)
commit5358919f924549cb7e35e9d835694934fb6a40f1
treecad818925eb5d7205cf33cfbf8a57a433eb5895c
parent637c4c4a0ee923e1276d72b7bd7bb8d23ab1b024
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