diff options
| author | Roger Pau Monné <roger.pau@citrix.com> | 2015-11-03 16:34:09 +0000 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:57:43 +0200 |
| commit | 89940b048407baa69cc6c822a8d6468dd6ce0a0d (patch) | |
| tree | f634f0fc81a3278b3937dd9b7bc7c7984a969d95 /lib/flex_array.c | |
| parent | 0e31faaf02f5245278898f54d9ac07582967e321 (diff) | |
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>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions
