Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4917234rwd; Tue, 23 May 2023 14:54:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4n0bHye6bFhP8j+zPFHZwU3Ogg6gQVKHFXk8CvrgY00KSdT+DLDCwGOa2lEwCsdpDrjMEv X-Received: by 2002:a17:90a:600b:b0:255:ae08:98e5 with SMTP id y11-20020a17090a600b00b00255ae0898e5mr2878565pji.22.1684878855756; Tue, 23 May 2023 14:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684878855; cv=none; d=google.com; s=arc-20160816; b=vVZdj5E4m2YwklemTGfAHPonX7C1hARHFqIqURlVsc+jfdJIrlUlTaP5woOljvXoXb U6NIYWROVs7iI5D9LPqIWqcOXnL3uOnFhmfvAjDaDmWVQMfaLjWXasgYW4y5FiewMQ+M yMMR+QMKftNy/w8Vm/EBJesnAjvmcT3kcAJ4J8aC94n5cLNYoqFRhGeMtLnaTkR08VDh ftpLyQqT8YE6xgFv5wh6ActblXEIErVzQkY+5DlRhUAr7geV54nxp8/YXf3V/sijbin4 zrfMtTiTjPrJOSCPTrY0FuwQN5jfdSFIzOUoKRonLDRDpeK/Uh5QjogocFzKmUysLnxg bGcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:subject :references:in-reply-to:message-id:cc:to:from:date; bh=2ljHI6niuDGD0ur4cL4Mi4pV2RKqwvqQ8ESg7aVcjQw=; b=wsv1L5/bPNao6oYc3u9Wj7bTlSV3svKsbKkCyI3HNPXtNR02KpTmaRooGVAghb0IL0 bqVVuxnmjyRneB0Ohq7Nk8y38PohhNjfk2KiJ3KpjQC18zt7Dj8kiqRYpT3awXt79lDU DVzQ6oV7OtxtgjyOV3wCuqsxXOevYed7/EiQVUsNp3Lu2G30ltyKOPLbKXYtp7yrO/La dqzc1wNjRl2pPDLFwK7349a0u1lvcR4MunuLnat/4TKiypMuSgUOtYtoS2LvSZQeqph1 +XIF8cTA/4ge60urQ0ytIxrrAKuofBROBZK4xs8hjSJHjEYqjHzVOqmFOkcJkzitFwkd ueEg== 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 g22-20020a17090ace9600b002502c10bdb4si69675pju.91.2023.05.23.14.54.02; Tue, 23 May 2023 14:54:15 -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 S238587AbjEWVbW convert rfc822-to-8bit (ORCPT + 99 others); Tue, 23 May 2023 17:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbjEWVbV (ORCPT ); Tue, 23 May 2023 17:31:21 -0400 X-Greylist: delayed 332 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 23 May 2023 14:31:18 PDT Received: from pio-pvt-msa3.bahnhof.se (pio-pvt-msa3.bahnhof.se [79.136.2.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42819E5; Tue, 23 May 2023 14:31:18 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa3.bahnhof.se (Postfix) with ESMTP id 53B533F4FA; Tue, 23 May 2023 23:25:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Score: -1.91 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from pio-pvt-msa3.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa3.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xWoa5MYq7N-Q; Tue, 23 May 2023 23:25:42 +0200 (CEST) Received: by pio-pvt-msa3.bahnhof.se (Postfix) with ESMTPA id 61CCF3F414; Tue, 23 May 2023 23:25:41 +0200 (CEST) Received: from [192.168.0.126] (port=60034) by tnonline.net with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q1ZVk-000GEM-Nn; Tue, 23 May 2023 23:25:40 +0200 Date: Tue, 23 May 2023 23:25:38 +0200 (GMT+02:00) From: Forza To: Uladzislau Rezki , Bagas Sanjaya Cc: Linux btrfs , Linux Kernel Mailing List , Linux Regressions , Linux Stable , Chris Mason , Josef Bacik , David Sterba , a1bert@atlas.cz, urezki@gmail.com Message-ID: <26007e3.faed4a1b.1884a80d9e8@tnonline.net> In-Reply-To: References: Subject: Re: Fwd: vmalloc error: btrfs-delalloc btrfs_work_helper [btrfs] in kernel 6.3.x MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8BIT X-Mailer: R2Mail2 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 ---- From: Uladzislau Rezki -- Sent: 2023-05-23 - 12:28 ---- > On Tue, May 23, 2023 at 08:52:21AM +0700, Bagas Sanjaya wrote: >> On Mon, May 22, 2023 at 09:04:05PM +0200, Forza wrote: >> > I have a similar experience with kernel 6.3 where vmalloc fails in a similar way. I was able to reproduce it in a QEMU VM as well as on my system. >> > >> > https://lore.kernel.org/all/d11418b6-38e5-eb78-1537-c39245dc0b78@tnonline.net/T/ >> >> Thanks for your similar report. Telling regzbot about it: >> >> #regzbot link: https://lore.kernel.org/all/d11418b6-38e5-eb78-1537-c39245dc0b78@tnonline.net/ >> > It is good that you can reproduce it. Could you please test below patch? Yes, applied it to my test VM and will let it run over night to see how it turns out. I'll post again tomorrow. Thanks. > > > diff --git a/mm/vmalloc.c b/mm/vmalloc.c > index 31ff782d368b..7a06452f7807 100644 > --- a/mm/vmalloc.c > +++ b/mm/vmalloc.c > @@ -2957,14 +2957,18 @@ vm_area_alloc_pages(gfp_t gfp, int nid, > page = alloc_pages(alloc_gfp, order); > else > page = alloc_pages_node(nid, alloc_gfp, order); > + > if (unlikely(!page)) { > - if (!nofail) > - break; > + if (nofail) > + alloc_gfp |= __GFP_NOFAIL; > > - /* fall back to the zero order allocations */ > - alloc_gfp |= __GFP_NOFAIL; > - order = 0; > - continue; > + /* Fall back to the zero order allocations. */ > + if (order || nofail) { > + order = 0; > + continue; > + } > + > + break; > } > > /* > > > Thanks! > > -- > Uladzislau Rezki