Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp442165pxu; Thu, 7 Jan 2021 08:47:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxBO+iyszd3R2P79l3wxtkcrH0nexggG7lGdHcEcZZq4fh5XFClbb05vhitzg1wq7ZSqLt X-Received: by 2002:a17:906:8255:: with SMTP id f21mr6789488ejx.265.1610038021101; Thu, 07 Jan 2021 08:47:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610038021; cv=none; d=google.com; s=arc-20160816; b=r4lIGuXyWHRWGzUYzb3sLqjq7wuZedcCjNAnGE2Q9x0ow9/lBDe6b+CkyzPxIj7hHp xMbwDfTFOEWUz9rzCb4hLS45VnLzEU1Wf1coHZIFezc+QvcNbFP1gvMOZNW3hmDIqn4w hN85OY6SkazN0lbunM+Mh7U7qN2fmmqEwg9RSfUJsnuvX7UWuqOjA1BHDtZXiww4RImj 4AnSpn6CBWbYGHvDoX1AeGMMJ9ATUs0bvk1RtVIeQyka0EgU9b1hkBozMZ+UILO3Ekp0 xijjK9sw8fhEO44jFDmuj+dkDlKp7Dq+iAyQ5x+3PLlvlTqr90NK9aJx/qWc6ArBL+qo tIaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wSvk/N4VsMaZmRt/5EtC0lSsod9zly1e3L1YQgG9tsU=; b=AxOQIVzBYGQ1DqQ5q7uWV91JJZ9CfsePWOWkTR46urchWcOqkhvVotu4qLsckzUM7x /48ADbfk1WN3PYdbYDmhlBGUGQKz8btRjpz6tLj4echkkhXz2fcSIfPGQ3mz0KtleHD5 Tv5+vrnxSIjyb9P+jtrITZhePgogMPeBnIq37G4/8WYxFcV3+MhTi1iByuvO1ubixQ93 OgvY9Ek0xGbHRKC59ZHt3a7fR6+1Mjw6mHHyp3LRtMFuHbiDNLsbbAFWpZkYrMHdjNF6 jS9y0oVgNVv/L+ns+CWFuPfcVhJbD07/GWtHcsXn/nVO1OXLPXZiyyDQu0j+vJEz+fsM yqoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=CHWH7qAy; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si2414822edt.499.2021.01.07.08.46.37; Thu, 07 Jan 2021 08:47:01 -0800 (PST) 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=pass header.i=@suse.com header.s=susede1 header.b=CHWH7qAy; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727978AbhAGQpG (ORCPT + 99 others); Thu, 7 Jan 2021 11:45:06 -0500 Received: from mx2.suse.de ([195.135.220.15]:35346 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbhAGQpG (ORCPT ); Thu, 7 Jan 2021 11:45:06 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1610037859; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=wSvk/N4VsMaZmRt/5EtC0lSsod9zly1e3L1YQgG9tsU=; b=CHWH7qAy13X86IPtbS3dAIJCL0GjcydL626E4T0HnkuK4vD19rHyhc5LHWICFUKdpV5sp9 mxoO3UPtyRo4Le2VDlVE8TwZW+wIPi/bD2Z3qvhtzEHVHEWbhsDmG6sL3WOWSH8zPzrOwi /u3LZKf2l9BI3IJpZKtUhDMgiAl4BgI= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4D4C6B771; Thu, 7 Jan 2021 16:44:19 +0000 (UTC) From: Petr Mladek To: Sergey Senozhatsky , Steven Rostedt , John Ogness Cc: Linus Torvalds , Guenter Roeck , Shreyas Joshi , shreyasjoshi15@gmail.com, Greg Kroah-Hartman , Sergey Senozhatsky , Greg Ungerer , Vineet Gupta , Thomas Meyer , David Gow , Brendan Higgins , Andy Shevchenko , Shuah Khan , linux-kernel@vger.kernel.org, Petr Mladek Subject: [PATCH 0/1] console: Blank console - userspace regression Date: Thu, 7 Jan 2021 17:43:59 +0100 Message-Id: <20210107164400.17904-1-pmladek@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit 757055ae8dedf5333af17b3b ("init/console: Use ttynull as a fallback when there is no console") caused several regressions. The ttynull console has been selected by default when no console was configured on the command line and ttynull_init() was the first initcall calling register_console(). There were few possible workarounds but I was not happy with them. I worked on a proper solution but it became too complicated to be used at this stage. The console registration code is a sad story. There are many hidden catches. The ordering of registered consoles is not well defined. Any change in the code tends to break some particular system. The good news is that I become more and more familiar with it. I hope that I will be able to clean it up step by step in the future. But it is definitely not a good idea to do any big refactoring in rc phase. Hence I propose to revert the problematic commit as the least risky solution. Petr Mladek (1): Revert "init/console: Use ttynull as a fallback when there is no console" drivers/tty/Kconfig | 14 ++++++++++++++ drivers/tty/Makefile | 3 ++- drivers/tty/ttynull.c | 18 ------------------ include/linux/console.h | 3 --- init/main.c | 10 ++-------- 5 files changed, 18 insertions(+), 30 deletions(-) -- 2.26.2