Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp165420yba; Wed, 3 Apr 2019 06:34:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUuTQykRNIRKEFRS2asgbsAVYIHJKgIIxj8lL8CV/M7qAVbwddmxpxqvnHs7AoBoEeYcZh X-Received: by 2002:a63:d352:: with SMTP id u18mr43085930pgi.315.1554298451428; Wed, 03 Apr 2019 06:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554298451; cv=none; d=google.com; s=arc-20160816; b=eJrsG9yttuH1GRHWI0N8FrjbXGyWXD4ANRD1StS4PA648iIM9b6uxZOgjetPbS2HtD TCDGqx/psULLffcp40qvCmHQ29Rn7NfCG9exbuw0JwxwYwiMgV9Q2lxp3Bx6wTdCnEzn kBv91IAzN8CzaD68ZFBv2ngveqSxcVbvI7Q299xN26JxGBv9kjZe4hslgaH+EY8jlgVk iGyasVXp9Jgh2HrQIq1M8R8OSG1H4bGanusNA01edoONOndNSttTyGlvIrebU5Y2A4Ef MV80mLsuP+KJei6PcEx/1lNzWoplNPDuPtXqzTg9vv/JnirRpmh6IRLMmHVvTkigc6av zpJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4L1ahVuebZ9jJsgCWao8GEFVrnWLEHNpNcrYH2sl+4M=; b=NwQOOcl2pwYa//d5JSuSDeR6b93nTYoD9KCZNLI6aXY66THDx+IFZERJY4N2dhpZVl n9mO83es3q7Emr3ex4Aw8DuxIAqFQMRUmaxcTlRFJPNH2HIS6+0YY+dJkWhsL3puwh4X wGBFm34jxNcxrLTfmWNkOg3VstYf2DQCYDAlE8h5/Zj+pA+xYXrZ0fe5dbybNjYNdvXx Ec5wQLCjHI2e297ADuANWp7S2haBEd/oqJr9uz/diPPNyp3lGPk8d7anV5LtnfARX0q2 rkVg0E7Hdj4WryCFR5bu2tYaNSuRxFgCaZrnTHGPU7+5IUxht4d6gr0SMbKpUlLmaouD CqEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hoDZNtXZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g30si14240222plg.102.2019.04.03.06.33.55; Wed, 03 Apr 2019 06:34:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hoDZNtXZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726415AbfDCNbj (ORCPT + 99 others); Wed, 3 Apr 2019 09:31:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:43706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfDCNbj (ORCPT ); Wed, 3 Apr 2019 09:31:39 -0400 Received: from localhost (217-101-180-136.cable.dynamic.v4.ziggo.nl [217.101.180.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2AF7D20830; Wed, 3 Apr 2019 13:31:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554298298; bh=i+csG34p3l522y2X6/WNOz0nkBgh+Pgqokr3JLyYuR0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hoDZNtXZQIfXjhSLhe/YlXFfx3OPSl2emZhVu9VnT9WZ6eVZMnkWGIC56shW6vaAX otz1er5i5jZO7Lspf+0jPpuZYw/yxxsAl4fca5yF++oNLU9uTAv3WOfms148wLG1c8 JZjVAJViPZI4Bk80tvqU7D9YFStm44Dm+ZaZx4kE= Date: Wed, 3 Apr 2019 15:12:13 +0200 From: Greg KH To: Vincent Whitchurch Cc: jslaby@suse.com, linux-kernel@vger.kernel.org, Vincent Whitchurch Subject: Re: [PATCH] tty: Add NULL TTY driver Message-ID: <20190403131213.GA4246@kroah.com> References: <20190403113327.3628-1-vincent.whitchurch@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190403113327.3628-1-vincent.whitchurch@axis.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 03, 2019 at 01:33:27PM +0200, Vincent Whitchurch wrote: > If no console driver is enabled (or if a non-present driver is selected > with something like console=null in an attempt to disable the console), > opening /dev/console errors out, and init scripts and other userspace > code that relies on the existence of a console will fail. Symlinking > /dev/null to /dev/console does not solve the problem since /dev/null > does not behave like a real TTY. > > To just provide a dummy console to userspace when no console driver is > available or desired, add a ttynull driver which simply discards all > writes. It can be chosen on the command line in the standard way, i.e. > with console=ttynull. If they have a broken system that sets "console=null", why would they know to fix it to be "console=ttynull"? I'm all for adding new functionality, but to provide kernel code because userspace just isn't configured properly, that feels really wrong to me. Now if this were to be the "default" if nothing is set up at all, that might make a bit more sense, but as-is, this doesn't seem very useful. thanks, greg k-h