Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4138615rwd; Tue, 23 May 2023 03:52:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ERFZuc+ytL8lCy0CaOfw2zrZ6hhvnW7NuZBonHM4mzkHqRugz/V0RT0M3N9epxNalla8q X-Received: by 2002:a05:6a00:1798:b0:64d:22d:adb3 with SMTP id s24-20020a056a00179800b0064d022dadb3mr16105726pfg.1.1684839124006; Tue, 23 May 2023 03:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684839123; cv=none; d=google.com; s=arc-20160816; b=tmZoWwY75MshFoJtOiW6fW67Yvrxw771mPS7IA/+FCIvO4W2W65YoGca9G7Yn5Jc4F L6/C4EfICf1yA6sgOkK6IJEoqg59J0CctuWN/Nx/8eM9J6higz+Me6XqTeB9LlaeIVv5 97QlOJf5BAmEMTSeBSTt7GgriBDnyC3l679+I3qAqLkQf2kUTlBRTl/RjFRe7eziJuAu j5QDxgAaGBcaWYK5DCaCgbACICPqgOVChnReyOC8tmF2QSqhpWPOFs2brqsfkhYKBs/C EilNaTyRWAUDwnnxAi4Th7WcUP0hHA99ond5S/iPy2pFpdDY+KCdV4/wIMi0+8Ysth4/ 9SJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=eWUyqe1Hx0qJvTJ8mr6ssQT6TVvbWeNPeCd8kj4GkHM=; b=cdCfcDfLux3+Qsya1M3YjEy4m2BIcWpvNRlKzcbIJCcH4hHK9SgURaCowjR6RrUjEd mT/+0umos1p+sAjcsufz+okkY+eDnIG/NE4K/eSKdQM1wm/cn9cx272bO/6sJgMI0/TM BJZGfn5uy3d/fI1zLRci7n8Bn+vv+ix/QdbN6AaxA1CWwaUCx+zXkG5WY4A8S+7ULR7/ HLT0qb+qYp4Sd/m0H6a4DFhgp/LSQlPvezjFkNFpjlvLXfb3J/zbPaChpy4Vros2TiDV 9NXr23zTss6QnuSZMaWZoLUcC6T+PfdGxb/2NZA5QcWuJZkZGjU44xWJ7sSybbnqlpw/ J/QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=hOve3PIg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w126-20020a623084000000b0063b1bfa94dasi6158595pfw.323.2023.05.23.03.51.48; Tue, 23 May 2023 03:52:03 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=hOve3PIg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236373AbjEWK3y (ORCPT + 99 others); Tue, 23 May 2023 06:29:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236204AbjEWK3p (ORCPT ); Tue, 23 May 2023 06:29:45 -0400 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BDBAFD; Tue, 23 May 2023 03:29:42 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-4f4b2bc1565so1995152e87.2; Tue, 23 May 2023 03:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684837721; x=1687429721; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=eWUyqe1Hx0qJvTJ8mr6ssQT6TVvbWeNPeCd8kj4GkHM=; b=hOve3PIgESzmA1/VwP9qwbqQQJq41+7E4NS4NExcIxi7kGA9xY3KUSYUgZ6E2CR6eu teZIz2BZSliKnG9iC/5e0txWLNlb5yHuQnuIX2GotfaWc8z1S1Cg08mETbuGrWqoTNlh jHw4vTN0K3+s+UbHSaa+o5d2EVBvI4YssvxDkYVk5/3gB/tRGJNfi1/S2VtF0tQDKV1D q/s/OeGc8Tfr0XUc701qADiqbWwX9QX0RsryuvcjBY4d6iLh+DKD0RBZALAsoFKZk2/s 3duS0k4z3T4Z2W2RBHRM7kEfryP6nJLWdN77HgkrIRDel9hXu5CFr8T3k6nA+D38ken9 BAcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684837721; x=1687429721; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eWUyqe1Hx0qJvTJ8mr6ssQT6TVvbWeNPeCd8kj4GkHM=; b=IKV0wPwjU3VaO0wAHHHSE0aivHr+CwQvI//xoz5Anuf70pujf98Fye1aE1t5vNPUUY 3rVP8jivpQMuLyalqEoZQsEoLA0rKiAredo8nS8DxZdQPOz60RlF2kSykordWdBpJPlp c/oZulDNELNkZvZxXb6eU1XCCs1HmJ+JNZ8bGFQnc/EEeWfX3rsytsZ9qswsOta4STlB B97rkzgzKvS3SMMLNF/mdEzarNocbN67gkl6A833ukh4QUKyzrmru09bVDEQg3bsiKJ2 Qj5TvXkTGn7dPRhAe4+2AMnIYySqGHB1C6z1oC1ikOP9qymA9mX7PcD2Wap8IC+zIwp0 BURQ== X-Gm-Message-State: AC+VfDxeGhayfqU6aTqYB4l5SiI8iQ9ZxF+suOi5e2IgN3v7Z3CjMKKr KWB0YvMKy3g8NY2qLav8Ee/l+HMAd1xRsuH7 X-Received: by 2002:ac2:555e:0:b0:4f3:880b:285a with SMTP id l30-20020ac2555e000000b004f3880b285amr4572686lfk.29.1684837720546; Tue, 23 May 2023 03:28:40 -0700 (PDT) Received: from pc636 (host-90-235-19-70.mobileonline.telia.com. [90.235.19.70]) by smtp.gmail.com with ESMTPSA id t15-20020ac243af000000b004f121c8beddsm1297639lfl.124.2023.05.23.03.28.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 03:28:40 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Tue, 23 May 2023 12:28:37 +0200 To: Bagas Sanjaya , Forza Cc: Forza , Linux btrfs , Linux Kernel Mailing List , Linux Regressions , Linux Stable , Chris Mason , Josef Bacik , David Sterba , a1bert@atlas.cz, urezki@gmail.com Subject: Re: Fwd: vmalloc error: btrfs-delalloc btrfs_work_helper [btrfs] in kernel 6.3.x Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 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? 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