]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xen-scsiback: safely copy requests
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 16 Nov 2015 18:02:32 +0000 (18:02 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 18 Dec 2015 15:00:41 +0000 (10:00 -0500)
commitbe69746ec12f35b484707da505c6c76ff06f97dc
tree2cb9529b55a599d28327eca9ef5f92f529d6fd08
parent18779149101c0dd43ded43669ae2a92d21b6f9cb
xen-scsiback: safely copy requests

The copy of the ring request was lacking a following barrier(),
potentially allowing the compiler to optimize the copy away.

Use RING_COPY_REQUEST() to ensure the request is copied to local
memory.

This is part of XSA155.

CC: stable@vger.kernel.org
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-scsiback.c