Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp589611rba; Wed, 27 Mar 2024 06:09:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBNDtzi4TUbdvcRmU38ESQtPKJjs4LRnKJwtQVMY0BjIA9o9vXqPzuEwcHGViE45RGGQb8Vd9u+6Km7K8rNY32gBrP3SBHkdo9AJkeCg== X-Google-Smtp-Source: AGHT+IFmPDr8l+QhoRtWJ3SAnBYjMnn+4xIwyfQeIaVpejiKDgo/VCdvRu1bUxZ+I/KR1gPe447n X-Received: by 2002:a17:902:d550:b0:1e1:97ce:a328 with SMTP id z16-20020a170902d55000b001e197cea328mr1472129plf.52.1711544968531; Wed, 27 Mar 2024 06:09:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711544968; cv=pass; d=google.com; s=arc-20160816; b=tknA5fT9vHlsGer1U1/dHwWAigi3BZiPM9gg6bw4UFMjLuxNxIIJOJWtjIpeDvBNMK oO4pBQ/pL+nIIJ7ogWcwSErlzpBSyppIpK9sSmKtqfyZRYxmBRKjsI3d8XKijnZJDNzr 1pN/+SszqiHYDUetCv+74L+gCE8br52JwRBHiFVTAworFQroC3sLN7h6IQcLBPcZgYLy a3gz0Uwx9yvbkWolbdlZVLnSxAVQQpjpzwaKihOjW14y0JXKN7Q/6xmCQd/DwwDMJctx Ypyml7WT2V9zlVBgT08+x5BLAQjnSvUJZ4BS3lBlMgnAJgVKPG8lkG0z5jdve+oKell4 yGOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=UNGcWXSOA72jtF1Femqs0LCxQT6q8jgg59giDC0tV3U=; fh=qZjR4FRzCammr0y4Ol3QkScLI4wemh+oQYE39x5b6TU=; b=xHXRwkbquiwmRz/XftS9HJCbp4P3myDi6uj31vubD4yMsUr7XRKL7lyLdufTnlCfiQ sU1tvtTtEevURiY221YnortqYQHFdNi71zJoLt31P+/GPhbxipeO9pVnK3TAN502c2Mz AKU8QYtu+fcHOu1t/0XSBkX52hEVa6436Pdly0G375wWLuVx+xrl1B/GQdVROhqEko0d MxvMHXc0ayBvnk4u2jRBeWpgjUPynxQKdk3f0hz+gkbLiGCaygNL3xV2veJeQrV5LA0i aGnrO070AL5I4qjLmArpbrLzubs+UiU6YK0OYGOr++ogVj8fVFIP0Y0CG5/vQhgvfj8O 6f3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@atomide.com header.s=25mailst header.b=Q10j6g4b; arc=pass (i=1 dkim=pass dkdomain=atomide.com); spf=pass (google.com: domain of linux-kernel+bounces-120711-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120711-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q8-20020a170902b10800b001e06c1eed2dsi9190332plr.539.2024.03.27.06.09.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 06:09:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120711-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@atomide.com header.s=25mailst header.b=Q10j6g4b; arc=pass (i=1 dkim=pass dkdomain=atomide.com); spf=pass (google.com: domain of linux-kernel+bounces-120711-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120711-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 43A0A29BDB5 for ; Wed, 27 Mar 2024 11:02:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77D8C52F8F; Wed, 27 Mar 2024 11:02:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="Q10j6g4b" Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69E6138FA1; Wed, 27 Mar 2024 11:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.50.62.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711537361; cv=none; b=Wo6Jkdo5wDJtdcYDC4mJ9MBjKz5Qi14nNztgfB9n0BAr9UTI68HpDs3oFYC9LcVFxWwsMUY7bnoRfmsbtn7xbG+NUOW2w9ijkWMwkN9ooedvoncEU+3vNelA5VPViucXcj3zUDh9YdeFPh20RLdh1rxAeGd9V3xy+utTfC519kk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711537361; c=relaxed/simple; bh=G/4vgZPxWH/R6/+uOrquQYX/hYERIpcpxtIlcfA8+rw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Vr7FTfYVrQQzszXlg8j8bQsF1wqofR3APJ8QnpvYeYbE08ZclL2s3W6rUXfyBWi6Ld1STnGFqZ157vKakMSIpM/BwlM93bzeYd24dkJ+sHSPkZhuqbFKyH+3hBkRUz7rRVyeVlVXfiDf5MCcgKM1fG+JktTU9Pf+vhVDYiI4Kok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com; spf=fail smtp.mailfrom=atomide.com; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b=Q10j6g4b; arc=none smtp.client-ip=74.50.62.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=atomide.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=atomide.com Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 246DD60868; Wed, 27 Mar 2024 11:02:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1711537359; bh=G/4vgZPxWH/R6/+uOrquQYX/hYERIpcpxtIlcfA8+rw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q10j6g4byFMzVt8WXX5cAgR7Ap0Nhzqd6ZjBYrGZJZwXr1vEfyXlRLoHu0LXBb5Ij uhiaw6lhkORt6+H8vHQ0Lt0CsIGY6MAwD8Ghvu0D0pRosshsE2CORQezS6SACgVh0/ 0pzFQW0mMqrfNsBO8v+bz8/f1hvS5ZfryvWEDeNpz3Uvt0GaD2mwVJk//d0fwPdFHG 76XQqBokH7EoC2Wfdzbe5DkDrGzz6/10xFWwU2yUdFzSwCX6FEXNyLyftz/4AbOsCN kGmJFRXNDnZNKGkgeLUkTLYtDaVtVwINz0mwACObM1Z3+1MJdYqkMPd4Yn/HYf25yc A9nP8itmf/cNg== From: Tony Lindgren To: Greg Kroah-Hartman , Jiri Slaby , Jonathan Corbet , Petr Mladek , Steven Rostedt , John Ogness , Sergey Senozhatsky Cc: "David S . Miller" , Andy Shevchenko , Dhruva Gole , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Sebastian Reichel , linux-doc@vger.kernel.org Subject: [PATCH v7 2/7] printk: Don't try to parse DEVNAME:0.0 console options Date: Wed, 27 Mar 2024 12:59:36 +0200 Message-ID: <20240327110021.59793-3-tony@atomide.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327110021.59793-1-tony@atomide.com> References: <20240327110021.59793-1-tony@atomide.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Currently console_setup() tries to make a console index out of any digits passed in the kernel command line for console. In the DEVNAME:0.0 case, the name can contain a device IO address, so bail out on console names with a ':'. Signed-off-by: Tony Lindgren --- kernel/printk/printk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -2498,6 +2498,10 @@ static int __init console_setup(char *str) if (console_opt_save(str, brl_options)) return 1; + /* Don't attempt to parse a DEVNAME:0.0 style console */ + if (strchr(str, ':')) + return 1; + /* * Decode str into name, index, options. */ -- 2.44.0