From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED736C433E0 for ; Mon, 8 Jun 2020 06:51:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C9730206A4 for ; Mon, 8 Jun 2020 06:51:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728792AbgFHGvY (ORCPT ); Mon, 8 Jun 2020 02:51:24 -0400 Received: from verein.lst.de ([213.95.11.211]:36063 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728334AbgFHGvX (ORCPT ); Mon, 8 Jun 2020 02:51:23 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 1AB7368AFE; Mon, 8 Jun 2020 08:51:20 +0200 (CEST) Date: Mon, 8 Jun 2020 08:51:20 +0200 From: Christoph Hellwig To: Vegard Nossum Cc: Christoph Hellwig , Kees Cook , Iurii Zaikin , Alexei Starovoitov , Daniel Borkmann , linux-kernel@vger.kernel.org, Al Viro , bpf@vger.kernel.org, Andrey Ignatov Subject: Re: WARNING: CPU: 1 PID: 52 at mm/page_alloc.c:4826 __alloc_pages_nodemask (Re: [PATCH 5/5] sysctl: pass kernel pointers to ->proc_handler) Message-ID: <20200608065120.GA17859@lst.de> References: <20200424064338.538313-1-hch@lst.de> <20200424064338.538313-6-hch@lst.de> <1fc7ce08-26a7-59ff-e580-4e6c22554752@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1fc7ce08-26a7-59ff-e580-4e6c22554752@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Thu, Jun 04, 2020 at 10:22:21PM +0200, Vegard Nossum wrote: > It's easy to reproduce by just doing > > read(open("/proc/sys/vm/swappiness", O_RDONLY), 0, 512UL * 1024 * 1024 > * 1024); > > or so. Reverting the commit fixes the issue for me. Yes, doing giant allocations will fail and trace. We have to options here that both seems sensible: - trunate sysctrl calls to some sensible length - (optionally) use vmalloc Is this a real application or just a test case trying to do the stupidmost possible thing?