From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EA87C432BE for ; Tue, 31 Aug 2021 08:14:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D95A860F56 for ; Tue, 31 Aug 2021 08:14:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240224AbhHaIP2 (ORCPT ); Tue, 31 Aug 2021 04:15:28 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:34926 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240072AbhHaIP0 (ORCPT ); Tue, 31 Aug 2021 04:15:26 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id D42372217E; Tue, 31 Aug 2021 08:14:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1630397670; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P06mgBVhu7SToXRTIjbn4FFfskaKgBH5tX1DHYjs8SI=; b=SbN2cgNBwfZnQjRbiVXd7pzA7ET81U1BM8QQbbLsIsLQuYpgWq/8kLpZWZlTNDU5DwyvcC 30BkeqmTQ5Lzveyef6vDydHSwdLuDoaz9okLQUitAFx2qZc2WmYP72eXSNZHRPFfvsqpiR 8yqY/HkwITbmiD4NNFRkik97DZOIIy0= Received: from suse.cz (unknown [10.100.224.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 66F6FA3B8C; Tue, 31 Aug 2021 08:14:30 +0000 (UTC) Date: Tue, 31 Aug 2021 10:14:29 +0200 From: Petr Mladek To: Sergey Senozhatsky Cc: Linus Torvalds , Steven Rostedt , John Ogness , James Wang , Linux Kernel Mailing List Subject: Re: kernel hang during reboot when cmdline include a non-exist console device Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding the reporter into Cc. On Tue 2021-08-31 12:17:59, Sergey Senozhatsky wrote: > On (21/08/30 19:53), Linus Torvalds wrote: > > > > There's a bugzilla for this, but let's just move it to reguilar email, > > unless some of you want to track it that way. > > > > The bugzilla entry says > > > > "When reboot, the capslock key of thinkpad x1 starts blinking" > > > > which sounds like there's an oops that just isn't showing, quite > > possibly because the console has already been shut down. > > > > I didn't test this out, and would sincerely hope that somebody else is > > willing to follow up on it since I'm in the busiest part of the merge > > window. > > [..] > > > > https://bugzilla.kernel.org/show_bug.cgi?id=214201 > > I think normally wrong/empty console boot argument should not cause > problems. We have a huge number of devices that use console="", for > instance. But on some hardware this triggers panic(), very early on. > > I have the same symptoms on my laptop, and so far haven't been able > to figure out how to track it down, but I need to re-start my investigation. Sergey, I think that you talk about the crash where there is no registered console and console_on_rootfs() fails to create stdin, stdout, and stderr for the init process. As a result the kernel crashes during boot. But the bugreport says that the system booted. It crashed later during reboot. It will likely be in the shutdown phase. It still might be still be caused by the missing console. But we should rule out other problems. James, do you see the problem: 1. When there is a real console registered. When you remove the wrong console= parameter. 2. When using "reboot -f" so that the system reboots a dirty way without trying to shut down services. Best Regards, Petr