linux/drivers/net/xen-netback
David Vrabel 49d9991a18 xen-netback: unref frags when handling a from-guest skb with a frag list
Every time a VIF is destroyed up to 256 pages may be leaked if packets
with more than MAX_SKB_FRAGS frags were transmitted from the guest.
Even worse, if another user of ballooned pages allocated one of these
ballooned pages it would not handle the unexpectedly >1 page count
(e.g., gntdev would deadlock when unmapping a grant because the page
count would never reach 1).

When handling a from-guest skb with a frag list, unref the frags
before releasing them so they are freed correctly when the VIF is
destroyed.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-03-05 14:58:17 -05:00
..
common.h xen-netback: always fully coalesce guest Rx packets 2015-01-23 18:01:58 -08:00
interface.c xen-netback: return correct ethtool stats 2015-03-05 14:58:17 -05:00
Makefile
netback.c xen-netback: unref frags when handling a from-guest skb with a frag list 2015-03-05 14:58:17 -05:00
xenbus.c xen-netback: fixing the propagation of the transmit shaper timeout 2015-01-06 14:17:37 -05:00