]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netfront: use correct linear area after linearizing an skb
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 9 Dec 2014 18:43:28 +0000 (18:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Dec 2014 02:41:00 +0000 (21:41 -0500)
commitcc8e0b94c3c8d5a335fe69fbd8c5525a25932537
tree335e3442e9aee1027e59f48cd761f4b9ca743b47
parent05ff812d077f3b7389c9b21816ff57ece300fe10
xen-netfront: use correct linear area after linearizing an skb

Commit b21961408509791f50f4879d98b3e1e88a8b7e93 (xen-netfront: Fix
handling packets on compound pages with skb_linearize) attempted to
fix a problem where an skb that would have required too many slots
would be dropped causing TCP connections to stall.

However, it filled in the first slot using the original buffer and not
the new one and would use the wrong offset and grant access to the
wrong page.

Netback would notice the malformed request and stop all traffic on the
VIF, reporting:

    vif vif-3-0 vif3.0: txreq.offset: 85e, size: 4002, end: 6144
    vif vif-3-0 vif3.0: fatal error; disabling device

Reported-by: Anthony Wright <anthony@overnetdata.com>
Tested-by: Anthony Wright <anthony@overnetdata.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c