Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp885722pxj; Thu, 17 Jun 2021 16:31:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9L4RYk/cxVG0iYNGY1OV6ygA9Mk2tvivJqwzFDJ9aky/05gwzS0O7KZRKtLBz8vG3HFcm X-Received: by 2002:a92:3f01:: with SMTP id m1mr5574990ila.122.1623972689397; Thu, 17 Jun 2021 16:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623972689; cv=none; d=google.com; s=arc-20160816; b=jR+5x55HDh4ezRurXkTWZIyEm3w4+WcsRiAMP7X19jH2u6BVWN5IrbQUSr5CVJnAtw gMzbkLulNXnMMobK/l+qUKe5v9HDwBmezk6a9z8CdRRLjzCRqH6ac7aMVxezqDFhMUgH gEuNSTUA2hTrwptUeJA1Py3ovO5F7xhomvAuSb/1gTO/WKo7FoCJOCOOHdnK7oyHXcfk 6XrWgcnH7MWE2cKQZ0JV0YBeu4uygeGWHxg8tzCDdGNHLT8RRaX1ufxsp1gPVMTPwVN/ Gxu8zJwj57MfQHJC2p8M/PxjOz+04H8RrlLqMxKGVTuwCrQQP7X27blqp/yQ+DynzdSQ njtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=PiN3z2mKDdT5442Y+muKtJpynotCbE1hW/7caNM/RJk=; b=YB88f7ZW9FgNJQbPh4RZDAhanWVSRdtJ1SqPuaMIRAuv7ER9FJZm/SpxFf4hEwe45s FVNUbT3eBG0fE3z7e+t54QthYhy7Bbb2Qy5SvY9Ww4xX1NVJ5rEVDLVWQLemvIFJBVrn niE9WYlQ+VcnuRI5YrWudPMyDgwDloj9vBIGQas5Oyv4IycQcD3wbH7Bo1bfGs2oL839 tzDbKPm/fZB14s4HCucdRx+b5cFpWzVUVIDZns+EtjynUXhn5iUaGjOqD+wgiSoI8CVR 1r04BCRvwlLDwfpfoHELEfW8dPuZ1VT9KtsnDPAxJvTLbiTziAHYib//Khr1m7qZVaMp hExA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@eikelenboom.it header.s=20180706 header.b=SFGTJae2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=eikelenboom.it Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 3si436635ilg.37.2021.06.17.16.31.02; Thu, 17 Jun 2021 16:31:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@eikelenboom.it header.s=20180706 header.b=SFGTJae2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=eikelenboom.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231846AbhFQSEn (ORCPT + 99 others); Thu, 17 Jun 2021 14:04:43 -0400 Received: from server.eikelenboom.it ([91.121.65.215]:42784 "EHLO server.eikelenboom.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbhFQSEn (ORCPT ); Thu, 17 Jun 2021 14:04:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=eikelenboom.it; s=20180706; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PiN3z2mKDdT5442Y+muKtJpynotCbE1hW/7caNM/RJk=; b=SFGTJae2VtNYejTAt/O1zGbbFs WqNBFGLdNgegQgVYtdoSjbl7L5z3kKUVETjdj8jFbq5hVa3nKtFGd0AZvB97rSgiBOzlYFHcPHVIL zua+3fLh2ng3XN3RDLyuLGzPskn7WR6QA31nbq3EZCvvyJkm1lihbSwwq4f6BxAa/Hyo=; Received: from 76-24-144-85.ftth.glasoperator.nl ([85.144.24.76]:51064 helo=[172.16.1.50]) by server.eikelenboom.it with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltwQB-0006fU-Be; Thu, 17 Jun 2021 20:07:19 +0200 Subject: Re: Linux 5.13-rc6 regression to 5.12.x: kernel OOM and panic during kernel boot in low memory Xen VM's (256MB assigned memory). To: Rasmus Villemoes , Linus Torvalds Cc: linux-kernel , "xen-devel@lists.xenproject.org" References: <9108c22e-3521-9e24-6124-7776d947b788@rasmusvillemoes.dk> From: Sander Eikelenboom Message-ID: <0b12f27b-1109-b621-c969-10814b2c1c2f@eikelenboom.it> Date: Thu, 17 Jun 2021 20:02:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <9108c22e-3521-9e24-6124-7776d947b788@rasmusvillemoes.dk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/06/2021 17:37, Rasmus Villemoes wrote: > On 17/06/2021 17.01, Linus Torvalds wrote: >> On Thu, Jun 17, 2021 at 2:26 AM Sander Eikelenboom wrote: >>> >>> I just tried to upgrade and test the linux kernel going from the 5.12 kernel series to 5.13-rc6 on my homeserver with Xen, but ran in some trouble. >>> >>> Some VM's boot fine (with more than 256MB memory assigned), but the smaller (memory wise) PVH ones crash during kernel boot due to OOM. >>> Booting VM's with 5.12(.9) kernel still works fine, also when dom0 is running 5.13-rc6 (but it has more memory assigned, so that is not unexpected). >> >> Adding Rasmus to the cc, because this looks kind of like the async >> roofs population thing that caused some other oom issues too. > > Yes, that looks like the same issue. > >> Rasmus? Original report here: >> >> https://lore.kernel.org/lkml/ee8bf04c-6e55-1d9b-7bdb-25e6108e8e1e@eikelenboom.it/ >> >> I do find it odd that we'd be running out of memory so early.. > > Indeed. It would be nice to know if these also reproduce with > initramfs_async=0 on the command line. > > But what is even more curious is that in the other report > (https://lore.kernel.org/lkml/20210607144419.GA23706@xsang-OptiPlex-9020/), > it seemed to trigger with _more_ memory - though I may be misreading > what Oliver was telling me: > >> please be noted that we use 'vmalloc=512M' for both parent and this > commit. >> since it's ok on parent but oom on this commit, we want to send this > report >> to show the potential problem of the commit on some cases. >> >> we also tested by changing to use 'vmalloc=128M', it will succeed. > > Those tests were done in a VM with 16G memory, and then he also wrote > >> we also tried to follow exactly above steps to test on >> some local machine (8G memory), but cannot reproduce. > > Are there some special rules for what memory pools PID1 versus the > kworker threads can dip into? > > > Side note: I also had a ppc64 report with different symptoms (the > initramfs was corrupted), but that turned out to also reproduce with > e7cb072eb98 reverted, so that is likely unrelated. But just FTR that > thread is here: > https://lore.kernel.org/lkml/CA+QYu4qxf2CYe2gC6EYnOHXPKS-+cEXL=MnUvqRFaN7W1i6ahQ@mail.gmail.com/ > > Rasmus > I choose to first finish the bisection attempt, not so suprising it ends up with: e7cb072eb988e46295512617c39d004f9e1c26f8 is the first bad commit So at least that link is confirmed. I also checked out booting with "initramfs_async=0" and now the guest boots with the 5.13-rc6-ish kernel which fails without that. -- Sander