b5fb5e90fb
memory in rtl8139 device model xsa140-qemuu-1.patch xsa140-qemuu-2.patch xsa140-qemuu-3.patch xsa140-qemuu-4.patch xsa140-qemuu-5.patch xsa140-qemuu-6.patch xsa140-qemuu-7.patch xsa140-qemut-1.patch xsa140-qemut-2.patch xsa140-qemut-3.patch xsa140-qemut-4.patch xsa140-qemut-5.patch xsa140-qemut-6.patch xsa140-qemut-7.patch - bsc#939709 - VUL-0: XSA-139: xen: Use after free in QEMU/Xen block unplug protocol xsa139-qemuu.patch - bsc#937371 - xen vm's running after reboot xendomains-libvirtd-conflict.patch - bsc#938344 - VUL-0: CVE-2015-5154: qemu,kvm,xen: host code execution via IDE subsystem CD-ROM CVE-2015-5154-qemuu-check-array-bounds-before-writing-to-io_buffer.patch CVE-2015-5154-qemut-check-array-bounds-before-writing-to-io_buffer.patch CVE-2015-5154-qemuu-fix-START-STOP-UNIT-command-completion.patch CVE-2015-5154-qemut-fix-START-STOP-UNIT-command-completion.patch CVE-2015-5154-qemuu-clear-DRQ-after-handling-all-expected-accesses.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=371
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
References: bsc#939709 XSA-139
|
|
|
|
pci_piix3_xen_ide_unplug should completely unhook the unplugged
|
|
IDEDevice from the corresponding BlockBackend, otherwise the next call
|
|
to release_drive will try to detach the drive again.
|
|
|
|
Suggested-by: Kevin Wolf <kwolf@redhat.com>
|
|
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
|
|
---
|
|
hw/ide/piix.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
Index: xen-4.5.1-testing/tools/qemu-xen-dir-remote/hw/ide/piix.c
|
|
===================================================================
|
|
--- xen-4.5.1-testing.orig/tools/qemu-xen-dir-remote/hw/ide/piix.c
|
|
+++ xen-4.5.1-testing/tools/qemu-xen-dir-remote/hw/ide/piix.c
|
|
@@ -172,6 +172,7 @@ int pci_piix3_xen_ide_unplug(DeviceState
|
|
PCIIDEState *pci_ide;
|
|
DriveInfo *di;
|
|
int i = 0;
|
|
+ IDEDevice *idedev;
|
|
|
|
pci_ide = PCI_IDE(dev);
|
|
|
|
@@ -184,6 +185,12 @@ int pci_piix3_xen_ide_unplug(DeviceState
|
|
}
|
|
bdrv_close(di->bdrv);
|
|
pci_ide->bus[di->bus].ifs[di->unit].bs = NULL;
|
|
+ if (!(i % 2)) {
|
|
+ idedev = pci_ide->bus[di->bus].master;
|
|
+ } else {
|
|
+ idedev = pci_ide->bus[di->bus].slave;
|
|
+ }
|
|
+ idedev->conf.bs = NULL;
|
|
drive_put_ref(di);
|
|
}
|
|
}
|