Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1325718pxu; Thu, 8 Oct 2020 08:47:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvzMlriQa5Bku+0/NBNveG+NZ4dl/AYixvgywGvnoyn1OrF2Vi/9cIRnnBFSY7hweUeuuJ X-Received: by 2002:a17:906:dc5:: with SMTP id p5mr9926154eji.116.1602172076931; Thu, 08 Oct 2020 08:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602172076; cv=none; d=google.com; s=arc-20160816; b=mzpU/lWK1Kmk3o3pCjj884bY7289caTHxXfCOwZLmXNFrXCCIKfcRcys5SsoljD4Kx BkkuHas9ir/fBlEdYEl65x2xgCGXFhnuIn5y+qEnmldTOrP5yTso0+RoMD4ckKRA46Ph wfIzyNgvD2YdU5rdxe5nCC6mD2A8bD4pgeev2J++dzGvAbmqhw3hIYTBbkzffNiygMv2 BOpZE+bh0zAEOCaWaN5BVgsTx5g12w2FxK4id8eWALXnyxOEfc6TBNmaKeVSEp/g7h/R Z53Y96js5v2wDrNbb+nTcBZg5EB7LjyIv5N7vxGJoQ1kukqnADuOL9dnn1dvnY2Bo2zX H8Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bdMF3YnCMlBmzM2xXFBgcl6Aa3IU9TkHu2JS2ExdDRg=; b=DvwtBw2+xnU6e8eO5QRbOeig9DoBhd8B3TvHqTUFnjeDMzJ17kmwNgzdVshwM1TIWY I97eBNWUd28bAkE/CinuXr/q4TXuSzDg/ABLeLCc1WAw9ssLnlWAe7pX9hpDI2Fznfb3 NpQIvZggDx2lIW0gBQYijDizUVRISjUidVsYNKr0SUqpNFdaVDaTUFm9YM08K0OcRJkN yg+OWzi7z2vasjyEPHa9z2huuiY4VtZiVStxIg6c6SJoVgZ1pt/mv2eko6EB/95WE4UI QZ+xcTEC/aHIph6kK4S6XqrmwaDK6ez5NZa12UqltvJEYOTY97iJnSKOxihDVnODurFH iPhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IcMvvTDs; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si4950859ejd.238.2020.10.08.08.47.33; Thu, 08 Oct 2020 08:47:56 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=IcMvvTDs; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729662AbgJHK4H (ORCPT + 99 others); Thu, 8 Oct 2020 06:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbgJHK4H (ORCPT ); Thu, 8 Oct 2020 06:56:07 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0588C061755 for ; Thu, 8 Oct 2020 03:56:06 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id e10so3695608pfj.1 for ; Thu, 08 Oct 2020 03:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=bdMF3YnCMlBmzM2xXFBgcl6Aa3IU9TkHu2JS2ExdDRg=; b=IcMvvTDsaf7TA7DU8hsV3szGUT64Ncs+BMtr0J00B8ypb+2XTZZt2XqZZtOHucSMqT tXZpsA06UAnJUxVGUksWBW/uT0kVfUnP8h9KcygOkss54c5G861DCUqdzkTnpTgU7qf+ xUzkMt0Ll/+kWtdKj6QNPzBiw+BFbcg82HhJ47SYyK3fnQBr9eySks1qyR9zX2lBf2Ei gME9m2DR+xVIyk25c06G/7yh65zgaIWZyrtq8zj3HfQUiVFIc51UeUnTOEsC2lWhi9/e r4UWK2+H7rcPZ33GUEA1cfewXfy6sl8yMg7wIWQWXnQZst30RYxUeKtxL0jhE+vfK6wL 2mdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bdMF3YnCMlBmzM2xXFBgcl6Aa3IU9TkHu2JS2ExdDRg=; b=UTmNSarZYZPKLoavzN1eFWFjbwYo6TsQ4io5rVaSBXKIAeyq8NWrzoanGHW0NgKmO8 Llg07HCKNIXFPVLjY+WJddRMFLyKw98P2+amY8hAm+FgunKXXvSmkG49D6ojd8vLxqLw fMWrGnkpiLanOIE5RSFyo4G1E3Vk3afcjzO6Lm2yEV7Z7VdYLlomx8WPn7uBuibzzJv8 LkLi3/ZZhsMblUOgjIyqR/DK2jF0jbIgwIeELFj4En+xsQh/KpPbUlhZMd6+bhslCQkz JOhcLWi/UiRgjz+IY5cPxAhhxtMZLGtQ4jkiL+wQdgXNMLaqfpnaZsbD4D3dBe+rf8rf KByQ== X-Gm-Message-State: AOAM532ptImV1rQnb1YwZRv1yAMWMWByzXsPKmFEiZuqTN11I6TY6dD1 1hui+wC0bX/ljqlvoLImQC8= X-Received: by 2002:a17:90a:b293:: with SMTP id c19mr7675449pjr.122.1602154566345; Thu, 08 Oct 2020 03:56:06 -0700 (PDT) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id g13sm6737907pfu.186.2020.10.08.03.56.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 03:56:05 -0700 (PDT) Date: Thu, 8 Oct 2020 19:56:03 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Sergey Senozhatsky , Guenter Roeck , Shreyas Joshi , rostedt@goodmis.org, shreyasjoshi15@gmail.com, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Linus Torvalds Subject: Re: [PATCH] printk: handle blank console arguments passed in. Message-ID: <20201008105603.GB554@jagdpanzerIV.localdomain> References: <24f7a6bc-c917-2bb7-0e86-9d729c18e812@roeck-us.net> <20201006134328.GD32369@alley> <20201006163514.GE32369@alley> <20201006171504.GA64770@jagdpanzerIV.localdomain> <20201007072853.GF32369@alley> <20201007123044.GA509@jagdpanzerIV.localdomain> <20201007162942.GA440@jagdpanzerIV.localdomain> <20201008055238.GA554@jagdpanzerIV.localdomain> <20201008090155.GB16837@alley> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201008090155.GB16837@alley> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/10/08 11:01), Petr Mladek wrote: > > Interesting idea. Well, it looks like yet another mess: > > + it would show the consoles in /proc/consoles > even thought they will be basically unusable Which is fine, no? We already can have disables consoles in /proc/consoles. $ cat /proc/consoles tty0 -WU ( C p ) 4:1 So tty0 is not 'E'-enabled. I see no problems with that. These are the flags that /proc/consoles handle con_flags[] = { { CON_ENABLED, 'E' }, { CON_CONSDEV, 'C' }, { CON_BOOT, 'B' }, { CON_PRINTBUFFER, 'p' }, { CON_BRL, 'b' }, { CON_ANYTIME, 'a' }, }; Why do you think that having disabled consoles in /proc/consoles is a mess? > IMHO, we should try to understand why it actually crashes first. > It might help to solve the problem some cleaner way. Well, I guess, we have files (either regular files or devices) sitting in fd-s 0,1,2. God knows what mount/fsck/modprobe can fprintf(), for instance, to stdout/stderr and what they can corrupt. -ss