]> git.baikalelectronics.ru Git - kernel.git/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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Dec 2014 03:24:13 +0000 (19:24 -0800)
commitffc7c7cb9b2117b23e27877af59003c6fb513b88
treef7a4035a4042165fb0fd9ced5d86ab9e350e6560
parent74f79195a4d06cf92e073493e5abee0333136c4f
xen-netfront: Remove BUGs on paged skb data which crosses a page boundary

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: c08d206e4297 ("xen/netfront: handle compound page fragments on transmit")
Cc: <stable@vger.kernel.org> # 3.7+
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>
drivers/net/xen-netfront.c