Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5881CC64ED6 for ; Sun, 26 Feb 2023 07:32:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbjBZHcB (ORCPT ); Sun, 26 Feb 2023 02:32:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjBZHb7 (ORCPT ); Sun, 26 Feb 2023 02:31:59 -0500 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 082AFCA27 for ; Sat, 25 Feb 2023 23:31:57 -0800 (PST) Received: by mail-vs1-xe2a.google.com with SMTP id x14so6209594vso.9 for ; Sat, 25 Feb 2023 23:31:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=d+5xIw5mKWNDq2g4oN5XawWgEOR+TjZNFX15AeuMQCE=; b=ca1IUcAsxXKjF+3v9YV4jeVVbp+MYicRymxQFmA10tPnxWd/VO/9wy++powaPrz6H5 8GzJS3S3YHIF/bIiDWho2qbhFUdDCIiRZu5ieqdzUHk+DQnxKzjOvHMwfWg4utMZ/C0D 2OaZnud/78oqQSVoAKKYfM4xRNHzhx95R59AZNWg9H1CzlrwwSB2g4RCoyOOXippsrVO ggP2qvH793Igt6OK+rPkUFMjx64WwnhyIdLC7zWF839Q6/CzsG/p1jpcnWy7u+F5xQqX 1Wt45c36/VzgGMPq4C6EWNu+2OPpojj+BVXnQkTuMpVlceZOLWn/zqgjhGyaWnQ31jxm f1Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=d+5xIw5mKWNDq2g4oN5XawWgEOR+TjZNFX15AeuMQCE=; b=NnfFlCUOBNSVLG1m24JtW/rxfPMFIEukgXXESXtPiQbatJnbWteH8/BRX+ruF4+Ucv wsmEpNKkAi5UKWW1MG5/CcLO5IBTiAU9Dec53WZ9KpgezgXn0N2HGjXGSGjCib/gp8Xe tSdVnKEeWYzsvKat/EJLiNuwex94WIsSV+pfbynRnLuQPBNQUe0VJQKNMNksbtjZtBxi SM2LH1aUm45ogsMy6r+flifTY6/7/+YDYz6bejM0KORZk1TYRbwXdbwACEW63ns3JRHk WMmBUcsBZdl1tJDlPc9Vlr9HeyQ8mrQtIrehkmIZQbZwWDeK4T2O8CLApXSYdmEspVzF 07ug== X-Gm-Message-State: AO0yUKXtnUG8kCUg7dpK3ZXN+hf8BJdoWvBtxZokL632kVa3jnIU25wP 5GA1171Ip2WFKHPLMIYf4VsYJhaLXfM5OU4QZ8vhrg== X-Google-Smtp-Source: AK7set+BxCi/kbivKfeS7a0LI/3BCu14qyiIYuyczxig2cXabDYYfVCEQXrNRzFM/rT4RsgQqKINjhWroPbb4yifXc0= X-Received: by 2002:a1f:bf4a:0:b0:401:4daf:d581 with SMTP id p71-20020a1fbf4a000000b004014dafd581mr5193411vkf.0.1677396715951; Sat, 25 Feb 2023 23:31:55 -0800 (PST) MIME-Version: 1.0 References: <9f682c4d-e7b7-5e23-84f5-cea4fdac2085@leemhuis.info> <6bfa6d67-27ce-04b3-a1f9-3768b8a0169f@leemhuis.info> In-Reply-To: From: David Gow Date: Sun, 26 Feb 2023 15:31:43 +0800 Message-ID: Subject: Re: [6.3][regression] after commit 7170b7ed6acbde523c5d362c8978c60df4c30f30 my system stuck in initramfs forever To: Thorsten Leemhuis Cc: Mikhail Gavrilov , rmoar@google.com, brendanhiggins@google.com, skhan@linuxfoundation.org, Linux List Kernel Mailing , Linux kernel regressions list Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000006d07e205f5955b98" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000006d07e205f5955b98 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 26 Feb 2023 at 14:02, Thorsten Leemhuis wrote= : > > On 26.02.23 02:11, David Gow wrote: > > On Sat, 25 Feb 2023 at 23:53, Thorsten Leemhuis w= rote: > >> On 25.02.23 15:55, Mikhail Gavrilov wrote: > >>> On Sat, Feb 25, 2023 at 7:22=E2=80=AFPM Thorsten Leemhuis wrote: > >>>> > >>>> [CCing the regression list, as it should be in the loop for regressi= ons: > >>>> https://docs.kernel.org/admin-guide/reporting-regressions.html] > >>>> > >>>> On 25.02.23 14:51, Mikhail Gavrilov wrote: > >>>>> new kernel release cycle returning with new bugs > >>>>> Today my system got stuck in initramfs environment after updating t= o > >>>>> commit d2980d8d826554fa6981d621e569a453787472f8. > >>>>> > >>>>> I still do not understand how to configure the network inside the > >>>>> initramfs environment to grab the logs. > >>>>> Since an attempt to rebuild the initramfs with all modules (dracut > >>>>> --no-hostonly --force) leads to the stuck initramfs environment and > >>>>> impossible entering into initramfs console. > >>>> > >>>> Do you see any error messages? I have problems since Friday morning = as > >>>> well (stuck in Fedora's initramfs) and see a lot of BPF warnings lik= e > >>>> "BPF: invalid name" and "failed to validate module". Was able to do = a > >>>> screenshot: > >>>> > >>>> https://www.leemhuis.info/files/misc/Screenshot_ktst-f36-x86-64_2023= -02-24_07:53:14.png > >>> > >>> I also seen such messages > >>> https://freeimage.host/i/img-1475.HMPL26l > >> > >> Pretty sure that's the same problem, at least the symptoms match. If > >> anyone needs a config to reproduce this, here's one of mine that shows > >> the problem: > >> > >> https://www.leemhuis.info/files/misc/config > >> > >>> P.S.: I also use Fedora Rawhide. > >> > >> Happens for me on all Fedora 36, 37, and 38 (my rawhide build failed f= or > >> other reasons, so I couldn't test). > > > > Thanks for the report, and sorry this seems to have broken. > > > > I've not been able to reproduce this locally yet, but I'm looking into = it. > > > > In the meantime, a few questions if you have time: > > - Does this happen with CONFIG_KUNIT=3Dy as well as CONFIG_KUNIT=3Dm? > > - Does this patch fix it? > > https://lore.kernel.org/linux-kselftest/20230225014529.2259752-1-davidg= ow@google.com/T/#u > > Sorry, limited time and about to leave the house for the day. I only > could try the latter and did only do a very quick test, but it seems > that patch fixes the issue for me. > Thanks! Glad to hear that patch seems to fix it: we'll try to get it upstream as soon as possible, then. I wouldn't worry about testing with CONFIG_KUNIT=3Dy as well at this point: I doubt it'll shed any more light on the situation. I've still been unable to reproduce the issue here, even with a fresh install of Fedora Rawhide, and a very recent torvalds/master: 1ec35eadc3b4 ("Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux")[1]. I even tried plugging in a Keychron C2 keyboard (which also uses hid_apple), as well as running several KUnit tests which make use of the hooks functionality: everything worked fine. Given everything else seems fine here, and the makefile issues fixed by the above patch both seems to fix this, and is the only real issue I could imagine having unpredictable behaviour, I'm reasonably happy to consider this "fixed" by that patch. But if this patch _doesn't_ fix it, or you continue to see some other strange behaviour, we can look into fixing it further. Thanks again, -- David [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/com= mit/?id=3D1ec35eadc3b448c91a6b763371a7073444e95f9d --0000000000006d07e205f5955b98 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIPnwYJKoZIhvcNAQcCoIIPkDCCD4wCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg ggz5MIIEtjCCA56gAwIBAgIQeAMYYHb81ngUVR0WyMTzqzANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWdu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