]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Dec 2014 17:09:42 +0000 (09:09 -0800)
commit0a8c00c7edd66707bc60fb0dee21bdb2740baf4e
treecdda58ec3f75cf9e5e56da50bf598ebbf9bc5dbf
parent4542246879ccdb5f3cc58d8e66955246a74a9494
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