qemu/hw/block
Jan Beulich 4837a1a516 xen/blkif: avoid double access to any shared ring request fields
Commit f9e98e5d7a ("xen/blkif: Avoid double access to
src->nr_segments") didn't go far enough: src->operation is also being
used twice. And nothing was done to prevent the compiler from using the
source side of the copy done by blk_get_request() (granted that's very
unlikely).

Move the barrier()s up, and add another one to blk_get_request().

Note that for completing XSA-155, the barrier() getting added to
blk_get_request() would suffice, and hence the changes to xen_blkif.h
are more like just cleanup. And since, as said, the unpatched code
getting compiled to something vulnerable is very unlikely (and not
observed in practice), this isn't being viewed as a new security issue.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
2016-06-13 14:32:28 +01:00
..
dataplane virtio-blk: Remove op blocker for dataplane 2016-06-07 14:40:51 +01:00
block.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
cdrom.c
ecc.c
fdc.c fdc: Switch to byte-based block access 2016-05-12 15:22:09 +02:00
hd-geometry.c qemu-common: stop including qemu/bswap.h from qemu-common.h 2016-05-19 16:42:28 +02:00
m25p80.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
Makefile.objs
nand.c nand: Switch to byte-based block access 2016-05-12 15:22:09 +02:00
nvme.c dma-helpers: change interface to byte-based 2016-05-25 19:04:11 +02:00
nvme.h util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
onenand.c onenand: Switch to byte-based block access 2016-05-12 15:22:09 +02:00
pflash_cfi01.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
pflash_cfi02.c pflash: Switch to byte-based block access 2016-05-12 15:22:09 +02:00
tc58128.c block: Use DIV_ROUND_UP 2016-06-07 18:19:24 +03:00
virtio-blk.c virtio: Switch to byte-based aio block access 2016-05-12 15:22:09 +02:00
xen_blkif.h xen/blkif: avoid double access to any shared ring request fields 2016-06-13 14:32:28 +01:00
xen_disk.c xen/blkif: avoid double access to any shared ring request fields 2016-06-13 14:32:28 +01:00