Files
kernel_amazon_mt8127-common/drivers/block
Roger Pau Monné d6837064ef xen-blkback: only read request operation from shared ring once
commit 1f13d75ccb806260079e0679d55d9253e370ec8a upstream.

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.

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>
Cc: "Jan Beulich" <JBeulich@suse.com>
[wt: s/READ_ONCE/ACCESS_ONCE for 3.10]
Signed-off-by: Willy Tarreau <w@1wt.eu>
2017-02-06 23:32:29 +01:00
..
2014-04-03 12:01:05 -07:00
2013-03-26 14:48:12 -06:00
2013-04-09 14:13:19 -04:00
2013-04-09 14:13:32 -04:00
2013-03-28 14:50:49 -04:00
2013-05-31 11:45:52 -04:00
2013-04-09 14:13:32 -04:00
2014-11-21 09:22:52 -08:00
2013-03-20 15:44:58 +10:30