Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2692335rdg; Mon, 16 Oct 2023 11:45:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9Y1FeonCidxN7awXYUsMSRJYePsZd+QWgdNofW1k38chkzThillAgfB33ZZLG7RLeJHrP X-Received: by 2002:a17:90a:e147:b0:27d:c92:e897 with SMTP id ez7-20020a17090ae14700b0027d0c92e897mr12465359pjb.37.1697481944868; Mon, 16 Oct 2023 11:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697481944; cv=none; d=google.com; s=arc-20160816; b=A725c+PqxCKYFovN2JFbPwFU5nbhC/bOKjjP8Ri6stppnaTc0Wjk+vFTZxaygDEI9G OlWxInBhgb6CdfM/Pp4XeWsxbXiyX+TrlNk8ei1i/P9r9GQSx1HcmW5yGgrHrmreNyC/ Xi7IP4rjOiuiZJccH3QlJpgj0Q27rTahQmbmTQV3WOmJ88mzotrxlWWcjOWBMnNvfyi0 1mA7hXTniG+9hJDtTr8g/CaN5BPLMVnwMfDH9UEboj8vbm+43+1UiY6NcCYpUkKl5IIC CEfITSz8LSWarYOL8LeTUxf7DcbLW9aC1adLAmW3ynDe7rYpr9EOd8a7+Srw51OogvgD yvQw== 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=Fx3V2SYNlfJbaHTI24JWVKXTH5wVD9ViaZFHhdpVsMI=; fh=PdHJz2EHAsI5C1MmepYuof0eJQvKJvcT3odfGFtfi44=; b=omNoAvaQougRboK/l8Jx7NIqjEjyGJN5shA8R+rHLhi6dOtZSZlmRH3EcC32uRKCqJ G+hS3H/kyMnaRuz/+RVz/NrShrCbB01u4lL4gTq6mATHdK7m7M207tAmPxBtX+CGi/im tfUgj1WFvB2RZSCK8XVWCgB7lfn2GkbC4rlUqMuMQ/kTWUxueWah7bK81QdoH5U8xIKM ZXtgb6wyrv4++YiX5DtXRSC5aYf0QpIarJfj0Twte5fKCAO502SUdY2BkuGhd60+x7hC sdsundpOkI9+WCN6K2ZUifkILmcsnqe5Ek/47iW9zO8Cnf0YDQwq5ahY4CiSQ0LVx0CC 4mvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2HpJzUZO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id nu9-20020a17090b1b0900b00274d5eb88c4si7433181pjb.90.2023.10.16.11.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 11:45:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2HpJzUZO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id DE4F8804119E; Mon, 16 Oct 2023 11:45:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234051AbjJPSpc (ORCPT + 99 others); Mon, 16 Oct 2023 14:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233767AbjJPSpa (ORCPT ); Mon, 16 Oct 2023 14:45:30 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DC2895 for ; Mon, 16 Oct 2023 11:45:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5396FC433C8; Mon, 16 Oct 2023 18:45:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697481929; bh=5MhX2Fy9tH7BfEElMnLHmqrtjZcPf/XVb+qq3sXMBFQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2HpJzUZOEd976UzH0Y+Lv9hCK9jkRdSqQWAp5HDlBYC34yBfLOW+RSbK1GTVzvGPM UkrldNOkgl9jIX98l295dWU+xdpok6hYPEfSssMCVVMM4p08YkndE2SUdCUVzeOqsf +lSihLl1p+hFNgWXC+sij8IKQsYyKBya7A50ruhk= Date: Mon, 16 Oct 2023 20:45:24 +0200 From: Greg Kroah-Hartman To: Tony Lindgren Cc: Petr Mladek , 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: <2023101615-unsoiled-splicing-6cf1@gregkh> References: <20231012064300.50221-1-tony@atomide.com> <2023101649-gladly-scarily-329c@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2023101649-gladly-scarily-329c@gregkh> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 16 Oct 2023 11:45:41 -0700 (PDT) On Mon, Oct 16, 2023 at 08:45:00PM +0200, Greg Kroah-Hartman wrote: > On Thu, Oct 12, 2023 at 09:42:56AM +0300, 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 > > Reviewed-by: Greg Kroah-Hartman Oops, you want these to go through my tree, I'll take them now...