Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751352AbaKFVtr (ORCPT ); Thu, 6 Nov 2014 16:49:47 -0500 Received: from mail-ob0-f177.google.com ([209.85.214.177]:64933 "EHLO mail-ob0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751243AbaKFVtp (ORCPT ); Thu, 6 Nov 2014 16:49:45 -0500 Date: Thu, 6 Nov 2014 15:49:40 -0600 From: Seth Forshee To: netdev@vger.kernel.org Cc: "David S. Miller" , Konrad Rzeszutek Wilk , Boris Ostrovsky , David Vrabel , Stefan Bader , Jay Vosburgh , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, seth.forshee@canonical.com Subject: BUG in xennet_make_frags with paged skb data Message-ID: <20141106214940.GD44162@ubuntu-hedt> Mail-Followup-To: netdev@vger.kernel.org, "David S. Miller" , Konrad Rzeszutek Wilk , Boris Ostrovsky , David Vrabel , Stefan Bader , Jay Vosburgh , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We've had several reports of hitting the following BUG_ON in xennet_make_frags with 3.2 and 3.13 kernels (I'm currently awaiting results of testing with 3.17): /* Grant backend access to each skb fragment page. */ for (i = 0; i < frags; i++) { skb_frag_t *frag = skb_shinfo(skb)->frags + i; struct page *page = skb_frag_page(frag); len = skb_frag_size(frag); offset = frag->page_offset; /* Data must not cross a page boundary. */ BUG_ON(len + offset > PAGE_SIZE<page.p which could fail with data that extends into another page. Can anyone explain what the rules are here? My best guess based on skb_copy_bits is that paged data should never cross the hardware page boundary, but I'm not really sure how all of this works out when dealing with compound pages. Thanks, Seth -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/