Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp901463rwb; Mon, 26 Sep 2022 07:16:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4E5Yx/qGb9zBx5Tu8gr3WXrikBMH9a2A0uhdoHywmuR5/G7I7ftIoFnmcVap7+7RDpwloR X-Received: by 2002:a17:906:846b:b0:77a:6e22:7311 with SMTP id hx11-20020a170906846b00b0077a6e227311mr18149234ejc.524.1664201810620; Mon, 26 Sep 2022 07:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664201810; cv=none; d=google.com; s=arc-20160816; b=S5hgNf4o/DRJE6qvTrUtnGYvAiPCBl/x9WBZZLK8usgm+XsUDP4Sw7QcxeFjt/6+88 vZfU6KOLtv1vkfFsse1EhTZ73lyXKFoBKp5HaQ4q3pYJXW2bpVUo8RcIY07jxbC4jIqi J0uXs6hsDx97+eAUXf5Xl5aQ18Dmpntq9xNziG1WRErNDhjpj8PV1Ju2UaKm1y7dMT5g AUfb9u0pd23rnIgHFCFLP6tkdFmS7tj6F9R/cxIeItpY5JJff3Vj+QEammHUseJ3goLc QieIWt8ojhwlTOuVWp5qM6SuyNmMDbkFTk3PlHVjOaHDLVAAzhYFI4ayoD5CktghBKC+ wSmQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8RacjFxyuNalWX3TN1xSGAjiUXLpEcTKnoz2M4/fNRE=; b=El3Qocob8aEOdt7RAhhq4jb5gCgv92qlPANqhSYMlPpAArWK3+YB1ed4P7xKR2rRGn w59Ex1J32YrZTXVBHwf0nGw8d5sgXl2har6hiF9hXBzYtaqrKTjYYwUe7uXU42iRLvwT ZbLqOwydhqufYTlI1NkXSQPhqfi6j/CbkYFgOpAKp5ipQSLpepcJAg8cmPQrsw1Aof59 60N2c+DCo+WgLI3tJWiMPF/Homjn1m7WQmRW6b/mBpKinrfaQFZlU+hpf8i7KkbFXboU qIvhCPgh+iQDYtjSqrCAwKUB2Ac4Q66x2MDvDBz69d4ADnVuA2etexdoT+Cz6ZeLT8/o Q+Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rr5qnVl6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xi1-20020a170906dac100b0077f009c0f04si71339ejb.94.2022.09.26.07.16.24; Mon, 26 Sep 2022 07:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rr5qnVl6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238398AbiIZLuj (ORCPT + 99 others); Mon, 26 Sep 2022 07:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239084AbiIZLtS (ORCPT ); Mon, 26 Sep 2022 07:49:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0212B75CE8; Mon, 26 Sep 2022 03:48:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1FE47B80835; Mon, 26 Sep 2022 10:46:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66600C433C1; Mon, 26 Sep 2022 10:46:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664189215; bh=qYDUVPcIKSYGJQ6zNzCwrkC/y4sC7sO2DLHi4sBmVCU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rr5qnVl64QG/VF27vdF/pKdvHpQveei0z6843s9JjE17m6yCM/eXm2IuhTAxNAYM5 PwbQqf1OMLcAQwRRaVvUxBC9F+BwIRA/LCANEVJgDDAI3VGfVJnUBIlvlpY0CV7wZ5 h/BkK1vFFy3UIOWAYWA1fU3JLbOLgz9nh9Pg7Tg0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Meyer , Christian Lamparter , Richard Weinberger , Sasha Levin Subject: [PATCH 5.19 112/207] um: fix default console kernel parameter Date: Mon, 26 Sep 2022 12:11:41 +0200 Message-Id: <20220926100811.621399975@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100806.522017616@linuxfoundation.org> References: <20220926100806.522017616@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian Lamparter [ Upstream commit 782b1f70f8a8b28571949d2ba43fe88b96d75ec3 ] OpenWrt's UML with 5.15 was producing odd errors/warnings during preinit part of the early userspace portion: |[ 0.000000] Kernel command line: ubd0=root.img root=98:0 console=tty |[...] |[ 0.440000] random: jshn: uninitialized urandom read (4 bytes read) |[ 0.460000] random: jshn: uninitialized urandom read (4 bytes read) |/etc/preinit: line 47: can't create /dev/tty: No such device or address |/etc/preinit: line 48: can't create /dev/tty: No such device or address |/etc/preinit: line 58: can't open /dev/tty: No such device or address |[...] repeated many times That "/dev/tty" came from the command line (which is automatically added if no console= parameter was specified for the uml binary). The TLDP project tells the following about the /dev/tty: | /dev/tty stands for the controlling terminal (if any) for the current | process.[...] | /dev/tty is something like a link to the actually terminal device[..] The "(if any)" is important here, since it's possible for processes to not have a controlling terminal. I think this was a simple typo and the author wanted tty0 there. CC: Thomas Meyer Fixes: d7ffac33631b ("um: stdio_console: Make preferred console") Signed-off-by: Christian Lamparter Signed-off-by: Richard Weinberger Signed-off-by: Sasha Levin --- arch/um/kernel/um_arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index e0de60e503b9..d9e023c78f56 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c @@ -33,7 +33,7 @@ #include "um_arch.h" #define DEFAULT_COMMAND_LINE_ROOT "root=98:0" -#define DEFAULT_COMMAND_LINE_CONSOLE "console=tty" +#define DEFAULT_COMMAND_LINE_CONSOLE "console=tty0" /* Changed in add_arg and setup_arch, which run before SMP is started */ static char __initdata command_line[COMMAND_LINE_SIZE] = { 0 }; -- 2.35.1