xen-netfront: Remove BUGs on paged skb data which crosses a page boundary
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 26 Nov 2014 02:28:24 +0000 (20:28 -0600)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:05:23 +0000 (13:05 +0000)
commitec9493ed004bed627f87ccfbed0880f695c2c7f0
treecbeb09426f98eeabc0e2ce56d2d2dfe39687c2e8
parentb13e6a460ad36f38a0b623ad40cee9255c2d963f
xen-netfront: Remove BUGs on paged skb data which crosses a page boundary

commit 8d609725d4357f499e2103e46011308b32f53513 upstream.

These BUGs can be erroneously triggered by frags which refer to
tail pages within a compound page. The data in these pages may
overrun the hardware page while still being contained within the
compound page, but since compound_order() evaluates to 0 for tail
pages the assertion fails. The code already iterates through
subsequent pages correctly in this scenario, so the BUGs are
unnecessary and can be removed.

Fixes: f36c374782e4 ("xen/netfront: handle compound page fragments on transmit")
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netfront.c