summaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorRoger Pau Monné <roger.pau@citrix.com>2015-11-03 16:34:09 +0000
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2015-12-18 10:00:32 -0500
commit1f13d75ccb806260079e0679d55d9253e370ec8a (patch)
treea791cbe758b8c1c4feaf3a88603c7f96f7a4b7ba /drivers/xen
parent68a33bfd8403e4e22847165d149823a2e0e67c9c (diff)
downloadlinux-1f13d75ccb806260079e0679d55d9253e370ec8a.tar.gz
linux-1f13d75ccb806260079e0679d55d9253e370ec8a.tar.bz2
linux-1f13d75ccb806260079e0679d55d9253e370ec8a.zip
xen-blkback: only read request operation from shared ring once
A compiler may load a switch statement value multiple times, which could be bad when the value is in memory shared with the frontend. When converting a non-native request to a native one, ensure that src->operation is only loaded once by using READ_ONCE(). This is part of XSA155. CC: stable@vger.kernel.org Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
0 files changed, 0 insertions, 0 deletions