Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1316235rwd; Tue, 13 Jun 2023 07:38:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ62NCESHThPxS+mI/qTbY3pVyMJHGjwiE2KuJ7FXDpGHvpzKghgFFtAVUlTvsFv/d5d9n9j X-Received: by 2002:a17:906:dc90:b0:969:813c:9868 with SMTP id cs16-20020a170906dc9000b00969813c9868mr13747015ejc.18.1686667130122; Tue, 13 Jun 2023 07:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686667130; cv=none; d=google.com; s=arc-20160816; b=gVIPFQ1mJ6Yg7iGNnrmOpMFxPnk5mWk4XEW/dZb32UXK2RXF/d6WuBZn+DFQTFIP0V YavQCFpUu4ZPY7J2VvdHaa0Ey0B0xQZUNECoHBqAGAEaABwqZofEv8b1H2XGbgTdy4Cf s378j2/OUl4T1CFg2E3r2HK6HTZ5zeQRSay6wQsxWSgKG7I6JN6eSAEYpfK2SeNopTny f9PHNtKkPbqBVOfucaQCRvMJK7dViY/pR+nbO3H+iiLTSxgXFYVEIeVF0MGeewF+Bdh/ ZcJeUNwuccYMGCB5Zy9A3fPPzA2rZ4gWCyRFDiTuDblLIyk4t+Vpq7//RcA+t0uBsA8H /8/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:reply-to :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=iQdU7T4QY0A6BXCCiy7G30hy95s7z4Cz2A3GtZ1zuxY=; b=nVvsbc5vVba+WdYne1KHrhxI0eCs1X830XCnYstDThODrQQb6U9HOx5U2fiqTS9GhV 4amin0g5CDOEJI2TUmeVW02sgAKNH9SaIa6asPYArjhekFCKAxw9E3J6mrMbop4MZuas 24XaHxO83GtDqlBSsDrmMY0Yc+9AIMryPSo60fBHngAcmRvboFqAqoOmKdF0KWZl5qbe Vrnh4W06dzbTrSBGmBGBDwlig/qpFFkgzqhDUt/uDKbaaoKprufz+5NYUJouvULFZshD dvA9rVz38Myiu5sf5SpURN5j8rGjIpdqWlHqABn6oHHgeZv+9KB4zZlSNAfWLwTXUmma yxWQ== 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 ha9-20020a170906a88900b009766831c118si7101611ejb.1037.2023.06.13.07.38.23; Tue, 13 Jun 2023 07:38:50 -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 S242693AbjFMOJ2 (ORCPT + 99 others); Tue, 13 Jun 2023 10:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242726AbjFMOJY (ORCPT ); Tue, 13 Jun 2023 10:09:24 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72E9B1BF9 for ; Tue, 13 Jun 2023 07:08:54 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1q94gX-0003mL-Rb; Tue, 13 Jun 2023 16:07:49 +0200 Message-ID: <172193eb-14cc-549e-2953-6749a3a4c502@leemhuis.info> Date: Tue, 13 Jun 2023 16:07:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: printk.time causes rare kernel boot hangs Content-Language: en-US, de-DE To: "Richard W.M. Jones" , Aaron Thompson , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Linux kernel regressions list References: <20230613134105.GA10301@redhat.com> From: "Linux regression tracking #adding (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: <20230613134105.GA10301@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1686665334;a4fcf067; X-HE-SMSGID: 1q94gX-0003mL-Rb X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR, URIBL_BLOCKED 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 [CCing the regression list, as it should be in the loop for regressions: https://docs.kernel.org/admin-guide/reporting-regressions.html] [TLDR: I'm adding this report to the list of tracked Linux kernel regressions; the text you find below is based on a few templates paragraphs you might have encountered already in similar form. See link in footer if these mails annoy you.] On 13.06.23 15:41, Richard W.M. Jones wrote: > [Being tracked in this bug which contains much more detail: > https://gitlab.com/qemu-project/qemu/-/issues/1696 ] > > Recent kernels hang rarely when booted on qemu. Usually you need to > boot 100s or 1,000s of times to see the hang, compared to 292,612 [sic] > successful boots which I was able to do before the problematic commit. > > A reproducer (you'll probably need to use Fedora) is: > > $ while guestfish -a /dev/null -v run >& /tmp/log; do echo -n . ; done > > You will need to leave it running for probably several hours, and > examine the /tmp/log file at the end. > > I tracked this down to the following commit: > > commit f31dcb152a3d0816e2f1deab4e64572336da197d > Author: Aaron Thompson > Date: Thu Apr 13 17:50:12 2023 +0000 > > sched/clock: Fix local_clock() before sched_clock_init() > > Have local_clock() return sched_clock() if sched_clock_init() has not > yet run. sched_clock_cpu() has this check but it was not included in the > new noinstr implementation of local_clock(). > > (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f31dcb152a3d0816e2f1deab4e64572336da197d) > > Reverting this commit fixes the problem. > > I don't know _why_ this commit is wrong, but can we revert it as it > causes serious problems with libguestfs hanging randomly. > > Or if there's anything you want me to try out then let me know, > because I can reproduce the problem locally quite easily. Thanks for the report. To be sure the issue doesn't fall through the cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression tracking bot: #regzbot ^introduced f31dcb152a3d0816e2f1deab4e64572336da197d #regzbot title sched/clock: printk.time causes rare kernel boot hangs #regzbot ignore-activity This isn't a regression? This issue or a fix for it are already discussed somewhere else? It was fixed already? You want to clarify when the regression started to happen? Or point out I got the title or something else totally wrong? Then just reply and tell me -- ideally while also telling regzbot about it, as explained by the page listed in the footer of this mail. Developers: When fixing the issue, remember to add 'Link:' tags pointing to the report (the parent of this mail). See page linked in footer for details. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr That page also explains what to do if mails like this annoy you.