Last active
August 29, 2015 14:08
-
-
Save displague/d856614e449e270fad5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/drivers/net/xen-netfront.c 2014-10-31 15:33:16.000000000 -0400 | |
+++ b/drivers/net/xen-netfront.c 2014-10-31 15:36:04.000000000 -0400 | |
@@ -497,7 +497,13 @@ | |
offset = frag->page_offset; | |
/* Data must not cross a page boundary. */ | |
- BUG_ON(len + offset > PAGE_SIZE<<compound_order(page)); | |
+ // BUG_ON(len + offset > PAGE_SIZE<<compound_order(page)); | |
+ if (len + offset > PAGE_SIZE<<compound_order(page)) { | |
+ netdev_err(queue->info->netdev, "len %d offset %d order %d PageHead %d i %d nr_frags %d \n", | |
+ len, offset, compound_order(page), | |
+ PageHead(page), i, skb_shinfo(skb)->nr_frags); | |
+ BUG(); | |
+ } | |
/* Skip unused frames from start of page */ | |
page += offset >> PAGE_SHIFT; |
Author
displague
commented
Nov 3, 2014
Fixing by using queue->info->netdev
instead of dev
(previously considered queue->info->xbdev
)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment