linux/include/xen/interface
David Vrabel 119016c59b xen/blkback: correctly respond to unknown, non-native requests
commit 0e367ae465 upstream.

If the frontend is using a non-native protocol (e.g., a 64-bit
frontend with a 32-bit backend) and it sent an unrecognized request,
the request was not translated and the response would have the
incorrect ID.  This may cause the frontend driver to behave
incorrectly or crash.

Since the ID field in the request is always in the same place,
regardless of the request type we can get the correct ID and make a
valid response (which will report BLKIF_RSP_EOPNOTSUPP).

This bug affected 64-bit SLES 11 guests when using a 32-bit backend.
This guest does a BLKIF_OP_RESERVED_1 (BLKIF_OP_PACKET in the SLES
source) and would crash in blkif_int() as the ID in the response would
be invalid.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-04-05 10:04:18 -07:00
..
hvm hvc_xen: support PV on HVM consoles 2012-03-13 19:23:32 -04:00
io xen/blkback: correctly respond to unknown, non-native requests 2013-04-05 10:04:18 -07:00
callback.h xen64: define asm/xen/interface for 64-bit 2008-07-16 10:56:18 +02:00
elfnote.h Fix common misspellings 2011-03-31 11:26:23 -03:00
event_channel.h xen: clean up asm/xen/hypervisor.h 2008-12-16 21:50:31 +01:00
features.h xen: support GSI -> pirq remapping in PV on HVM guests 2010-10-22 21:25:42 +01:00
grant_table.h xen/granttable: Introducing grant table V2 stucture 2011-11-22 09:23:44 -05:00
memory.h xen: implement XENMEM_machphys_mapping 2010-11-12 15:00:06 -08:00
physdev.h xen: support pirq_eoi_map 2012-03-20 15:34:07 -04:00
platform.h xen/acpi-processor: C and P-state driver that uploads said data to hypervisor. 2012-03-14 12:35:42 -04:00
sched.h watchdog: Xen watchdog driver 2011-03-15 16:02:18 +00:00
vcpu.h
version.h xen: add /sys/hypervisor support 2009-03-30 09:27:06 -07:00
xen.h xen/granttable: Introducing grant table V2 stucture 2011-11-22 09:23:44 -05:00
xencomm.h