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
55 lines
2.0 KiB
Diff
55 lines
2.0 KiB
Diff
Subject: ATAPI: STARTSTOPUNIT only eject/load media if powercondition is 0
|
|
From: Ronnie Sahlberg ronniesahlberg@gmail.com Tue Jul 31 11:28:26 2012 +1000
|
|
Date: Wed Sep 12 15:50:09 2012 +0200:
|
|
Git: ce560dcf20c14194db5ef3b9fc1ea592d4e68109
|
|
|
|
The START STOP UNIT command will only eject/load media if
|
|
power condition is zero.
|
|
|
|
If power condition is !0 then LOEJ and START will be ignored.
|
|
|
|
From MMC (sbc contains similar wordings too)
|
|
The Power Conditions field requests the block device to be placed
|
|
in the power condition defined in
|
|
Table 558. If this field has a value other than 0h then the Start
|
|
and LoEj bits shall be ignored.
|
|
|
|
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
|
|
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
|
From aa851d30acfbb9580098ac1dc82885530cb8b3c1 Mon Sep 17 00:00:00 2001
|
|
From: Kevin Wolf <kwolf@redhat.com>
|
|
Date: Wed, 3 Jun 2015 14:17:46 +0200
|
|
Subject: [PATCH 2/3] ide/atapi: Fix START STOP UNIT command completion
|
|
|
|
The command must be completed on all code paths. START STOP UNIT with
|
|
pwrcnd set should succeed without doing anything.
|
|
|
|
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
---
|
|
hw/ide/atapi.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
Index: xen-4.2.5-testing/tools/qemu-xen-traditional-dir-remote/hw/ide.c
|
|
===================================================================
|
|
--- xen-4.2.5-testing.orig/tools/qemu-xen-traditional-dir-remote/hw/ide.c
|
|
+++ xen-4.2.5-testing/tools/qemu-xen-traditional-dir-remote/hw/ide.c
|
|
@@ -2095,9 +2095,16 @@ static void ide_atapi_cmd(IDEState *s)
|
|
break;
|
|
case GPCMD_START_STOP_UNIT:
|
|
{
|
|
- int start, eject;
|
|
+ int start, eject, pwrcnd;
|
|
start = packet[4] & 1;
|
|
eject = (packet[4] >> 1) & 1;
|
|
+ pwrcnd = buf[4] & 0xf0;
|
|
+
|
|
+ if (pwrcnd) {
|
|
+ /* eject/load only happens for power condition == 0 */
|
|
+ ide_atapi_cmd_ok(s);
|
|
+ return;
|
|
+ }
|
|
|
|
if (eject && !start) {
|
|
/* eject the disk */
|