aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux/securebits.h
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2015-10-30 14:58:08 +0000
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:57:42 +0200
commit87644b23dcc92f7a14e6164c74be9f846e483dfa (patch)
tree45dfd2f710ea90d796179c3c2dd0bf7276b86e56 /include/uapi/linux/securebits.h
parent9a34e946b6f37a47fa98bf5e29cee65c20e2f826 (diff)
xen: Add RING_COPY_REQUEST()
commit 454d5d882c7e412b840e3c99010fe81a9862f6fb upstream. Using RING_GET_REQUEST() on a shared ring is easy to use incorrectly (i.e., by not considering that the other end may alter the data in the shared ring while it is being inspected). Safe usage of a request generally requires taking a local copy. Provide a RING_COPY_REQUEST() macro to use instead of RING_GET_REQUEST() and an open-coded memcpy(). This takes care of ensuring that the copy is done correctly regardless of any possible compiler optimizations. Use a volatile source to prevent the compiler from reordering or omitting the copy. This is part of XSA155. Signed-off-by: David Vrabel <david.vrabel@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/uapi/linux/securebits.h')
0 files changed, 0 insertions, 0 deletions