Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15030290rwd; Sun, 25 Jun 2023 08:48:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ55eI9AMzTeYXPKUYc9qmzLzkA8uNpibRSqoiJkgUQp2okIdJq+0owTAO5nngqioubAnt0Y X-Received: by 2002:a17:903:2345:b0:1b7:c167:f272 with SMTP id c5-20020a170903234500b001b7c167f272mr2004862plh.32.1687708131921; Sun, 25 Jun 2023 08:48:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687708131; cv=none; d=google.com; s=arc-20160816; b=sf8SLZHnnWWgvznE8BNnmvTLPtmt37Ulp4KABbWndwNLAC3NQ8NpdOjopeTRWfXPnl ayBG6H1WBxXbrKTlHB7nBNxk5nzKQDt0wJsGXUspabCCQPLTqeTA310Wy23AV42pxmG1 dnn4yMeciQmNP+zLuC4qbs0yb273gM0cTAGdf2ZSRktanAfdR45H+Qh35Q8sqom1L5kW ELeGVlWdNGw7/pu4VIjPTKM+4QCINQL0vmk1wtdt/UcnUm7XYwmvTXuD+kO1gwtoqTzT h2ZKQ9d6jT8MJcuiVlfsgrMU12OLMAZEkfNFK2KsbLSQi2pXz02htkzHHH5Qx3O+rEcP qcNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=APHngEWRuPcRvIfk0irtcQPW+bVVyNhwM/dSxPqT3mw=; fh=bqiR1x7DY1Uv9a7gmO60r6aS/fVW0kpMZ72QlShL934=; b=RBDmPAG/IOP8Yyhi672pY/bsRiWarkseGADJKUykLNow7CGTj5QgGq3fQAItMnWHfu R2UL+REBd7wbIbXsfKxWp5Z9Fkub5tADPX/vMGzUhwFGQAHKXMS5hshH1dldN70Ihp/f YzR/QZR6881geSa7yNXPkVYU/jnmcG1Hj09Y+vwgJUPULeDlHDsVzcRbwZTkBcaNGqkv X38KGCX1X1Hrwd7453vGfGMNXikkpAAfIqSpP0dF82LYCY3orGXZi2HfMzys1XCSCZKh sJaTI/OxY1nTUg41ASaIXVFWFiW+krYXXfnbMFR8+2/gbdAjqrAX8lo9X6tHRXBK+HaN 0TNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x16-20020a170902ec9000b001b214c2bc05si3600916plg.42.2023.06.25.08.48.39; Sun, 25 Jun 2023 08:48:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229928AbjFYPeT convert rfc822-to-8bit (ORCPT + 99 others); Sun, 25 Jun 2023 11:34:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229846AbjFYPeS (ORCPT ); Sun, 25 Jun 2023 11:34:18 -0400 Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C57AE47 for ; Sun, 25 Jun 2023 08:34:17 -0700 (PDT) Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-c15a5ed884dso1153855276.2 for ; Sun, 25 Jun 2023 08:34:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687707256; x=1690299256; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Em86VtDkd1foZmdIW9TVdQbVnG2xtBG9ePF3h2l9uqI=; b=XOGSy9Dk+QYFmHiRfcEGAzL+YFnTPf6NyOYxdgmmQYvRs60qZjQ2EgOVsufqBN0R5M A43QGcHlKfJytstJggPRYknclu6MiCLJdvV+O1kHFvKxopyFR5tJr0MOrHliFhEeJLh2 1lcOS/U3GpsTQC8Vs7mrQbokE3apxnQ3KD6oRQnY3BZpUZItjS8/l8YJ5/375L2xzx4L 5dJfCtOZzSTZDl1LsWBFy/QO0zWXoSf5+GVELhDzli2k6VB6Nw6GqtNeA/rFZ6r1kCeL LxmwyGOCR74jk5K97ArtGkDDUHzRGNYFb0H8OrZ8sFLmXgrsBncPr76vLzvzAYJVOURs 4/6A== X-Gm-Message-State: AC+VfDxqp2MGPHOPxS3G7NMkwx1rpiZf8OURIEHvzRzMOFbrh78gKzK4 tUajwS8VzDL1VWxvE881jcyxcBFer6JhaA== X-Received: by 2002:a81:6942:0:b0:55d:8cee:96e9 with SMTP id e63-20020a816942000000b0055d8cee96e9mr29804452ywc.5.1687707255832; Sun, 25 Jun 2023 08:34:15 -0700 (PDT) Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com. [209.85.219.182]) by smtp.gmail.com with ESMTPSA id r185-20020a815dc2000000b0056ffca5fb01sm852447ywb.117.2023.06.25.08.34.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 25 Jun 2023 08:34:14 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-c15a5ed884dso1153824276.2 for ; Sun, 25 Jun 2023 08:34:14 -0700 (PDT) X-Received: by 2002:a81:7c41:0:b0:576:777f:28bc with SMTP id x62-20020a817c41000000b00576777f28bcmr7920762ywc.21.1687707254518; Sun, 25 Jun 2023 08:34:14 -0700 (PDT) MIME-Version: 1.0 References: <6c7a89ba-1253-41e0-82d0-74a67a2e414e@kili.mountain> <1059342c-f45a-4065-b088-f7a61833096e@kili.mountain> <206F3FDB-59BE-4386-82D2-6FF3CD16D053@oracle.com> In-Reply-To: <206F3FDB-59BE-4386-82D2-6FF3CD16D053@oracle.com> From: Geert Uytterhoeven Date: Sun, 25 Jun 2023 17:34:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: next: WARNING: CPU: 0 PID: 1200 at mm/page_alloc.c:4744 __alloc_pages+0x2e8/0x3a0 To: Chuck Lever III Cc: Dan Carpenter , Naresh Kamboju , open list , linux-mm , kasan-dev , "kunit-dev@googlegroups.com" , "lkft-triage@lists.linaro.org" , Marco Elver , Andrew Morton , Mel Gorman , Andrey Ryabinin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chuck, On Sun, Jun 25, 2023 at 5:17 PM Chuck Lever III wrote: > > On Jun 25, 2023, at 4:46 AM, Geert Uytterhoeven wrote: > > On Sat, May 13, 2023 at 10:54 AM Dan Carpenter wrote: > >> On Fri, May 12, 2023 at 01:56:30PM +0000, Chuck Lever III wrote: > >>>> On May 12, 2023, at 6:32 AM, Dan Carpenter wrote: > >>>> I'm pretty sure Chuck Lever did this intentionally, but he's not on the > >>>> CC list. Let's add him. > >>>> > >>>> regards, > >>>> dan carpenter > >>>> > >>>> On Fri, May 12, 2023 at 06:15:04PM +0530, Naresh Kamboju wrote: > >>>>> Following kernel warning has been noticed on qemu-arm64 while running kunit > >>>>> tests while booting Linux 6.4.0-rc1-next-20230512 and It was started from > >>>>> 6.3.0-rc7-next-20230420. > >>>>> > >>>>> Reported-by: Linux Kernel Functional Testing > >>>>> > >>>>> This is always reproducible on qemu-arm64, qemu-arm, qemu-x86 and qemu-i386. > >>>>> Is this expected warning as a part of kunit tests ? > >>> > >>> Dan's correct, this Kunit test is supposed to check the > >>> behavior of the API when a too-large privsize is specified. > >>> > >>> I'm not sure how to make this work without the superfluous > >>> warning. Would adding GFP_NOWARN to the allocation help? > >> > >> That would silence the splat, yes. > > > > But introduce a build failure, as GFP_NOWARN does not exist. > > This is the fix that went in: > > commit b21c7ba6d9a5532add3827a3b49f49cbc0cb9779 > Author: Chuck Lever > AuthorDate: Fri May 19 13:12:50 2023 -0400 > Commit: Jakub Kicinski > CommitDate: Mon May 22 19:24:52 2023 -0700 > > net/handshake: Squelch allocation warning during Kunit test > > The "handshake_req_alloc excessive privsize" kunit test is intended > to check what happens when the maximum privsize is exceeded. The > WARN_ON_ONCE_GFP at mm/page_alloc.c:4744 can be disabled safely for > this test. > > Reported-by: Linux Kernel Functional Testing > Fixes: 88232ec1ec5e ("net/handshake: Add Kunit tests for the handshake consumer API") > Signed-off-by: Chuck Lever > Link: https://lore.kernel.org/r/168451636052.47152.9600443326570457947.stgit@oracle-102.nfsv4bat.org > Signed-off-by: Jakub Kicinski > > diff --git a/net/handshake/handshake-test.c b/net/handshake/handshake-test.c > index e6adc5dec11a..6193e46ee6d9 100644 > --- a/net/handshake/handshake-test.c > +++ b/net/handshake/handshake-test.c > @@ -102,7 +102,7 @@ struct handshake_req_alloc_test_param handshake_req_alloc_params[] = { > { > .desc = "handshake_req_alloc excessive privsize", > .proto = &handshake_req_alloc_proto_6, > - .gfp = GFP_KERNEL, > + .gfp = GFP_KERNEL | __GFP_NOWARN, > .expect_success = false, > }, > { > > Is there a platform where __GPF_NOWARN is not defined? "git grep" says all of them, as you misspelled it in your question ;-) "__GFP_NOWARN" is defined in include/linux/gfp_types.h, so it should be available everywhere. Note the use of "__GFP_NOWARN" instead of "GFP_NOWARN". Once in a while, people do submit patches using "GFP_NOWARN"... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds