From patchwork Wed May 13 21:04:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Dumazet X-Patchwork-Id: 6400201 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3C7689F1C2 for ; Wed, 13 May 2015 21:07:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6ECE320274 for ; Wed, 13 May 2015 21:07:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A784D20268 for ; Wed, 13 May 2015 21:07:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YsdqF-0001qz-PR; Wed, 13 May 2015 21:05:23 +0000 Received: from mail-ie0-x230.google.com ([2607:f8b0:4001:c03::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ysdq9-0000cp-Ke for linux-arm-kernel@lists.infradead.org; Wed, 13 May 2015 21:05:18 +0000 Received: by iecmd7 with SMTP id md7so43917256iec.1 for ; Wed, 13 May 2015 14:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; bh=7v+E4zpQ9mGYTqVY9zdQM1ZH9pUAf0GaIhq9olyfZ+k=; b=DXyjLLnC+c/sIVeW56TwBNRRe57OPpSIp2nJI/cbM7+laFJUN7GzVb+7oSUSjZnQQE w6aDDDgwnHJ7sd9RdoLb0hizIUYMH/Yh2V4c9eSwuDAY+H9Igv1eS9ufHeiClOgtbxI5 7UKQjbVmQY1KoZ4eeRSOyEeut3uynJCcXsXV81F1FbxfBsF2JLdbgWn6E+rMmAYAJ26k NP7UZDt4p2j4v58iScGvRSOmTbz3bf0IP8wLr55/6z5K12jMDNP7wsMIUSckRodDD70Q CcLOB1TGDCOzshw3gQBbrY+3M03Dh5eBosSYIlM0ZCG3b+m0BZmN4UKgniJkX4isVlTN Ot4A== X-Received: by 10.50.33.51 with SMTP id o19mr13363962igi.45.1431551094908; Wed, 13 May 2015 14:04:54 -0700 (PDT) Received: from [172.29.163.58] ([172.29.163.58]) by mx.google.com with ESMTPSA id p8sm4415947iga.13.2015.05.13.14.04.53 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Wed, 13 May 2015 14:04:54 -0700 (PDT) Message-ID: <1431551093.27831.5.camel@edumazet-glaptop2.roam.corp.google.com> Subject: Re: regression with today's linux-next From: Eric Dumazet To: balbi@ti.com Date: Wed, 13 May 2015 14:04:53 -0700 In-Reply-To: <20150513182738.GA28201@saruman.tx.rr.com> References: <20150513182738.GA28201@saruman.tx.rr.com> X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150513_140517_737593_B02C948C X-CRM114-Status: GOOD ( 13.73 ) X-Spam-Score: -0.8 (/) Cc: Tony Lindgren , Linux OMAP Mailing List , Alexander Duyck , Linux Kernel Mailing List , Linux ARM Kernel Mailing List X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Wed, 2015-05-13 at 13:27 -0500, Felipe Balbi wrote: > Hi Alexander, > > your commit 9451980a6646 (net: Use cached copy of pfmemalloc to avoid > accessing page) regresses most OMAP-based boards with a NULL pointer > dereference. > > Below you can find git bisect log and a serial console capture of the > problem. Are you using jumbo frames ? Please try : diff --git a/net/core/skbuff.c b/net/core/skbuff.c index d67e612bf0ef..701318378142 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -414,9 +414,14 @@ struct sk_buff *__netdev_alloc_skb(struct net_device *dev, unsigned int len, len += NET_SKB_PAD; if ((len > SKB_WITH_OVERHEAD(PAGE_SIZE)) || - (gfp_mask & (__GFP_WAIT | GFP_DMA))) - return __alloc_skb(len, gfp_mask, SKB_ALLOC_RX, NUMA_NO_NODE); - + (gfp_mask & (__GFP_WAIT | GFP_DMA))) { + skb = __alloc_skb(len, gfp_mask, SKB_ALLOC_RX, NUMA_NO_NODE); + if (skb) { + skb_reserve(skb, NET_SKB_PAD); + skb->dev = dev; + } + return skb; + } len += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); len = SKB_DATA_ALIGN(len);