Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp349063rdb; Thu, 19 Oct 2023 06:26:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHj0CvT6o7M4Tn2BbRB38jXcGKULvr6Q6+NZ/UPyUnWrsjly7lRU7Db0ivhAvLvItxT2e83 X-Received: by 2002:a05:6870:46aa:b0:1e1:3ac9:bc14 with SMTP id a42-20020a05687046aa00b001e13ac9bc14mr2481398oap.30.1697721971565; Thu, 19 Oct 2023 06:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697721971; cv=none; d=google.com; s=arc-20160816; b=hh19UIOw+7O5VsjPGALW3Ko7MfrpcwTcPsdtyHudlE+CjTPjJV87rhWpfh2KDCyDmM JJPyJAMk3jyTO12tfmQ3IJtkC28ckxdEC25R6mdXSN8TZNZK3lOjUH+hBkZuRkVmNPw5 18Diem2umkeoRSXXj7oDAC9UWBmyPhjNq7MUWmaqhk3/1IpGqtSh0Fj41v09pegVbidh UqztorRqs2aqRku36RrvHKyfKjo6eiJBTeZl/y8EBYqw/wa3weT9fT46XVH6el4XmJXY GLH7qIMDfOqz++1BWVbSeZvqtXkwGd6diRR8a3ySTefrFx0mJ7L7bjNJPSfj/VNaRSRj Zhkg== 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; bh=BMAFuCJAIM6QGo3u/YV1ZvDwGbZ5orLgn1CYB+66HS0=; fh=h9pGNrlkr1rj0qGEhYAK4gBR3pA0VYF5PMT2qAx1GSU=; b=eHfU8U+VJtBnA58gt0wBhC9XrkfTT8W5POw+cPzB6Shs1T+uAUqzQZLP7aHfRlOB7n 42Tza/VqpV4F7VukKwlFdaY9W6BG/PF3snBSOKRhRsabbV/eWlFyOIfEJcLwcNv55bTx Ld0x+KFd+MpgBvjk5kzyj21C88rRLsDXWyazoGlP+5vLLDtKBfdJbUqg4dBGbsOrcgPs YyTCU2y3vb9kg5nZD4nzNltVV5dz7clmnudVE1k7PK192LvaQKKwZZMus3aAFbNXygAL PTkUIJdMKXEUATjtMWjD04wx7VUm3koJr/ECiJw+d6y9ukTwRZm7ZvWbpwVG839QZvEj WVGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id v10-20020a63610a000000b00573f867741fsi4405115pgb.158.2023.10.19.06.26.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 06:26:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id BCD6A80A1909; Thu, 19 Oct 2023 06:25:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345767AbjJSNZb (ORCPT + 99 others); Thu, 19 Oct 2023 09:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345709AbjJSNZa (ORCPT ); Thu, 19 Oct 2023 09:25:30 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59559106 for ; Thu, 19 Oct 2023 06:25:28 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id BDC641F892; Thu, 19 Oct 2023 13:25:26 +0000 (UTC) Received: from suse.cz (pmladek.udp.ovpn2.prg.suse.de [10.100.201.202]) (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 616492C55C; Thu, 19 Oct 2023 13:25:26 +0000 (UTC) Date: Thu, 19 Oct 2023 15:25:25 +0200 From: Petr Mladek To: Tony Lindgren Cc: Greg Kroah-Hartman , Steven Rostedt , John Ogness , Sergey Senozhatsky , Jiri Slaby , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] printk: Check valid console index for preferred console Message-ID: References: <20231012064300.50221-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231012064300.50221-1-tony@atomide.com> X-Spamd-Bar: +++++++++++++++ Authentication-Results: smtp-out2.suse.de; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=suse.com (policy=quarantine); spf=fail (smtp-out2.suse.de: domain of pmladek@suse.com does not designate 149.44.160.134 as permitted sender) smtp.mailfrom=pmladek@suse.com X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [15.00 / 50.00]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-3.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(0.00)[149.44.160.134:from]; DMARC_POLICY_QUARANTINE(1.50)[suse.com : No valid SPF, No valid DKIM,quarantine]; VIOLATED_DIRECT_SPF(3.50)[]; MX_GOOD(-0.01)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_SEVEN(0.00)[7]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.20)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_NOT_FQDN(0.50)[] X-Spam-Score: 15.00 X-Rspamd-Queue-Id: BDC641F892 X-Spam: Yes X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 19 Oct 2023 06:25:39 -0700 (PDT) On Thu 2023-10-12 09:42:56, Tony Lindgren wrote: > Let's check for valid console index values for preferred console to avoid > bogus console index numbers from kernel command line. > > Let's also return an error for negative index numbers for the preferred > console. Unlike for device drivers, a negative index is not valid for the > preferred console. > > Let's also constify idx while at it. > > Signed-off-by: Tony Lindgren Makes sense: Reviewed-by: Petr Mladek Best Regards, Petr