Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5057409rwd; Sun, 18 Jun 2023 04:45:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ43gUOKstlOO4YJorb1Z1RVSCKCVcyvMz2EPrdQVvoYG+E+Wr6VF2gHELmswqKKnWA1gJe2 X-Received: by 2002:a05:6870:e742:b0:18e:2b7e:a844 with SMTP id t2-20020a056870e74200b0018e2b7ea844mr4905609oak.21.1687088735121; Sun, 18 Jun 2023 04:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687088735; cv=none; d=google.com; s=arc-20160816; b=u0Z8795p8KB7toQbhzydlZyOeJ/HsGWuQ2p+ROPZi71SpJIYMtLUwSywoakSHz6He8 hV+O/eI1g/UUVkfZ85XNRwqR7P3Thg93gRIls2CKUhuLIOr9INVqV3aL6Mj0Z+nxD16n Joj57+6CfEbDQl4myNf2vnN7mT4LITuwwR7A35f0ZZqmytAkkkOVec04TxHEuxLFC2KC oIVa7jpSqnRYADysHGwnNj+xxy6Txu71oASgh7Apqcvm0p/3OcJ/l17UclEzWVm+YEat DZvmm0fRBgEMey8nDhp5XnH0wlUHnAKVbUKbfjh2eutPJ7FVKtvnjti8PuTM0namqBog BuaQ== 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:references :reply-to:cc:to:from:content-language:subject:user-agent :mime-version:date:message-id; bh=knjTJH7X7H9m87eU310rGc0HlrWm8wX2od7G23uN2jc=; b=qV8lqE/2yHbuT82ywpKBWC8/6W+KjglI+iA8UKRhak9xiC2e9yeow5ur30JZXzf/w9 DBmKiAr/SpN6Ky/wXQ1/sl3Br+EZhB9pckJ9rIGL50JI88itBx8aCFhn3C1EBJd4sKP2 /79QO2gxCpWG/g1p95m+WEpCb87xrwpVv+/dp8fv5tRm+V95/RjXbJvfpvEcSmajkl99 QTqtswdSHu/8N+TP27k+ypqbMSYyDvsicli2AwGsjOv13S1mzdSKjF1R7rfpPJHCbAKb yjkhTgT0lMmySfomJml8r+PPQFFCd5SJK+sbqjRLvxPHI3tseg/0QYVYLAj4tDcawyYk fB4g== 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 q6-20020a638c46000000b005533f58256fsi1032499pgn.560.2023.06.18.04.45.21; Sun, 18 Jun 2023 04:45:35 -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 S229658AbjFRKZq (ORCPT + 99 others); Sun, 18 Jun 2023 06:25:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjFRKZn (ORCPT ); Sun, 18 Jun 2023 06:25:43 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05E4B13D for ; Sun, 18 Jun 2023 03:25:41 -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 1qApbD-0002jU-OV; Sun, 18 Jun 2023 12:25:35 +0200 Message-ID: <1413638e-9614-056e-cfc5-5f9c8bf8af00@leemhuis.info> Date: Sun, 18 Jun 2023 12:25:35 +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 From: "Linux regression tracking #update (Thorsten Leemhuis)" To: "Richard W.M. Jones" , Aaron Thompson , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Linux kernel regressions list Reply-To: Linux regressions mailing list , Linux regressions mailing list References: <20230613134105.GA10301@redhat.com> <172193eb-14cc-549e-2953-6749a3a4c502@leemhuis.info> In-Reply-To: <172193eb-14cc-549e-2953-6749a3a4c502@leemhuis.info> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1687083942;99cb57ea; X-HE-SMSGID: 1qApbD-0002jU-OV X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 13.06.23 16:07, Linux regression tracking #adding (Thorsten Leemhuis) wrote: > > 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 #regzbot fix: tick/common: Align tick period during sched_timer setup #regzbot monitor: https://lore.kernel.org/all/12c6f9a3-d087-b824-0d05-0d18c9bc1bf3@amazon.com/ #regzbot ignore-activity 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.