Skip to contentSkip to conversation

cve-2015-5166-tag

GIT PULL Applied Stefano Stabellini 2 participants 3 messages Aug 3, 2015 – Aug 4, 2015

lore
Share & tools
lore
#0 lore raw

The following changes since commit 2a3612ccc1fa9cea77bd193afbfe21c77e7e91ef:

Merge remote-tracking branch 'remotes/stefanha/tags/rtl8139-cplus-tx-input-validation-pull-request' into staging (2015-08-03 13:09:10 +0100)

are available in the git repository at:

git://xenbits.xen.org/people/sstabellini/qemu-dm.git tags/cve-2015-5166-tag

for you to fetch changes up to 6cd387833d05e8ad31829d97e474dc420625aed9:

Fix release_drive on unplugged devices (pci_piix3_xen_ide_unplug) (2015-08-03 14:27:12 +0000)

----------------------------------------------------------------
cve-2015-5166

----------------------------------------------------------------
Stefano Stabellini (1):
Fix release_drive on unplugged devices (pci_piix3_xen_ide_unplug)

 hw/ide/piix.c |    7 +++++++
 1 file changed, 7 insertions(+)
#1 lore raw

[Qemu-devel] [PULL for-2.4 1/1] Fix release_drive on unplugged devices (pci_piix3_xen_ide_unplug)

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.

---
 hw/ide/piix.c |    7 +++++++
 1 file changed, 7 insertions(+)
hw/ide/piix.c +7 -0
index adb6649..5a26c86 100644
@@ -169,6 +169,7 @@ int pci_piix3_xen_ide_unplug(DeviceState *dev)
     PCIIDEState *pci_ide;
     DriveInfo *di;
     int i;
+    IDEDevice *idedev;
 
     pci_ide = PCI_IDE(dev);
 
@@ -181,6 +182,12 @@ int pci_piix3_xen_ide_unplug(DeviceState *dev)
                 blk_detach_dev(blk, ds);
             }
             pci_ide->bus[di->bus].ifs[di->unit].blk = NULL;
+            if (!(i % 2)) {
+                idedev = pci_ide->bus[di->bus].master;
+            } else {
+                idedev = pci_ide->bus[di->bus].slave;
+            }
+            idedev->conf.blk = NULL;
             blk_unref(blk);
         }
     }
Signature · 1 line
1.7.10.4
#2 lore raw
In reply to Stefano Stabellini
Quoted 16 lines · Stefano Stabellini

The following changes since commit 2a3612ccc1fa9cea77bd193afbfe21c77e7e91ef:

Merge remote-tracking branch 'remotes/stefanha/tags/rtl8139-cplus-tx-input-validation-pull-request' into staging (2015-08-03 13:09:10 +0100)

are available in the git repository at:

git://xenbits.xen.org/people/sstabellini/qemu-dm.git tags/cve-2015-5166-tag

for you to fetch changes up to 6cd387833d05e8ad31829d97e474dc420625aed9:

Fix release_drive on unplugged devices (pci_piix3_xen_ide_unplug) (2015-08-03 14:27:12 +0000)

----------------------------------------------------------------
cve-2015-5166

Quoted 6 lines

----------------------------------------------------------------
Stefano Stabellini (1):
Fix release_drive on unplugged devices (pci_piix3_xen_ide_unplug)

 hw/ide/piix.c |    7 +++++++
 1 file changed, 7 insertions(+)

Applied, thanks.

-- PMM