Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753332AbdI1OxH (ORCPT ); Thu, 28 Sep 2017 10:53:07 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:43759 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752357AbdI1OxG (ORCPT ); Thu, 28 Sep 2017 10:53:06 -0400 X-Google-Smtp-Source: AOwi7QB5GMsqh+6qL1XB9NJUki4nBcfrtM1LLlEfGjjhXkCbS/8Mmja5oOHvsgCnVBxDFAAkp4pgng== Date: Thu, 28 Sep 2017 07:53:02 -0700 From: Tejun Heo To: Mark Rutland Cc: Daniel Borkmann , linux-kernel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, syzkaller@googlegroups.com, "David S. Miller" , Alexei Starovoitov , Christoph Lameter Subject: Re: EBPF-triggered WARNING at mm/percpu.c:1361 in v4-14-rc2 Message-ID: <20170928145302.GE15129@devbig577.frc2.facebook.com> References: <20170928112727.GA11310@leverpostej> <59CD093A.6030201@iogearbox.net> <20170928144538.GA32487@leverpostej> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170928144538.GA32487@leverpostej> 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 Content-Length: 632 Lines: 22 Hello, On Thu, Sep 28, 2017 at 03:45:38PM +0100, Mark Rutland wrote: > > Perhaps the pr_warn() should be ratelimited; or could there be an > > option where we only return NULL, not triggering a warn at all (which > > would likely be what callers might do anyway when checking against > > PCPU_MIN_UNIT_SIZE and then bailing out)? > > Those both make sense to me; checking __GFP_NOWARN should be easy > enough. That also makes sense. > Just to check, do you think that dev_map_alloc() should explicitly test > the size against PCPU_MIN_UNIT_SIZE, prior to calling pcpu_alloc()? But let's please not do this. Thanks. -- tejun