android_kernel_lge_bullhead/drivers/net/xen-netback
David Vrabel 67434d33af xen-netback: use RING_COPY_REQUEST() throughout
commit 68a33bfd8403e4e22847165d149823a2e0e67c9c upstream.

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.

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>
[wt: adjustments for 3.10 : netbk_rx_meta instead of struct xenvif_rx_meta]

Signed-off-by: Willy Tarreau <w@1wt.eu>
2017-02-06 09:04:07 +01:00
..
Makefile
common.h xen-netback: ref count shared rings 2016-10-20 00:46:31 +02:00
interface.c xen-netback: ref count shared rings 2016-10-20 00:46:31 +02:00
netback.c xen-netback: use RING_COPY_REQUEST() throughout 2017-02-06 09:04:07 +01:00
xenbus.c xen: netback: read hotplug script once at start of day. 2015-06-22 16:55:51 -07:00