From: Neil Horman Subject: Re: [PATCHv2] net: suppress warnings on dev_alloc_skb Date: Thu, 19 May 2016 13:52:24 -0400 Message-ID: <20160519175224.GH4128@hmsreliant.think-freely.org> References: <1463585124-13086-1-git-send-email-nhorman@tuxdriver.com> <1463671854-26829-1-git-send-email-nhorman@tuxdriver.com> <1463672936.18194.195.camel@edumazet-glaptop3.roam.corp.google.com> <20160519173412.GG4128@hmsreliant.think-freely.org> <1463679590.18194.207.camel@edumazet-glaptop3.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, "David S. Miller" , Alexander Duyck To: Eric Dumazet Return-path: Received: from charlotte.tuxdriver.com ([70.61.120.58]:40967 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751760AbcESRwn (ORCPT ); Thu, 19 May 2016 13:52:43 -0400 Content-Disposition: inline In-Reply-To: <1463679590.18194.207.camel@edumazet-glaptop3.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, May 19, 2016 at 10:39:50AM -0700, Eric Dumazet wrote: > On Thu, 2016-05-19 at 13:34 -0400, Neil Horman wrote: > > On Thu, May 19, 2016 at 08:48:56AM -0700, Eric Dumazet wrote: > > > On Thu, 2016-05-19 at 11:30 -0400, Neil Horman wrote: > > > > Noticed an allocation failure in a network driver the other day on a 32 bit > > > > system: > > > > > > Presumably driver could fall back to HIGH memory allocation for the page > > > frag. > > > > > Is that safe on a 32 bit system? > > Neil > > This should be. > > Unless a bug somewhere was added, since most dev are using 64bit kernels > these days. > > All frag consumers use the appropriate kmap_atomic()/kunmap_atomic() > pairs before copying data from a page frag. Meaning the page can be in > HIGH memory. > Ok, understood, I'll look into a fallback option soon Neil > > > > > >