]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Tue, 6 Jan 2015 12:59:53 +0000 (13:59 +0100)
commit7493962219d95121cf95214db07df51373020363
treeb658ca2b1e6cd6031ad2458d43f3ea75d3639c58
parent6f6204584a51a9c36732d289cc037c256208b20e
xen-netfront: Remove BUGs on paged skb data which crosses a page boundary

[ Upstream commit 8d609725d4357f499e2103e46011308b32f53513 ]

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")
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/xen-netfront.c