]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen-netback: use RING_COPY_REQUEST() throughout
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 30 Oct 2015 15:17:06 +0000 (15:17 +0000)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:34 +0000 (02:01 +0100)
commit31b6c44062fcc10c23f5bd270f6a6486ecce3834
treeabd19bef4a1e288391d6d492136b0b054145e4fa
parent66318faa6a97987fef6a6a696bc2310777845336
xen-netback: use RING_COPY_REQUEST() throughout

Instead of open-coding memcpy()s and directly accessing Tx and Rx
requests, use the new RING_COPY_REQUEST() that ensures the local copy
is correct.

This is more than is strictly necessary for guest Rx requests since
only the id and gref fields are used and it is harmless if the
frontend modifies these.

This is part of XSA155.

CC: stable@vger.kernel.org
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 68a33bfd8403e4e22847165d149823a2e0e67c9c)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/net/xen-netback/netback.c