]> 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)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 18 Dec 2015 15:44:46 +0000 (10:44 -0500)
commit9fd3dc7a4198ee4c1d478a9b290cf5ead6a4a046
treef51ff707af6b9c476f7d4560a139acda3e232b54
parent279b67e894b5f4f1af1a5fbf03c745c1c1edaccc
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: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/net/xen-netback/netback.c