Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2399814lqp; Sun, 24 Mar 2024 17:52:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXr4QimMD7qzzA/F7DaOvUq27Up9yTe6fuTfvDJtSbeAKxM9fXf3sYvbafK/nKDEvBz6TMCPU40KnSDbjJzL04v0KSsSz/efmjT5WsglQ== X-Google-Smtp-Source: AGHT+IE5RED2xBCwDtqRuQugxmGqtcMBUkubY+yJHct1tNsWlQyNUoTknfDipZjFBN0Mgvx7QMwa X-Received: by 2002:a05:622a:1187:b0:431:5c20:f0cb with SMTP id m7-20020a05622a118700b004315c20f0cbmr666693qtk.38.1711327957979; Sun, 24 Mar 2024 17:52:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711327957; cv=pass; d=google.com; s=arc-20160816; b=yEdbTwrAgb/kYNFdH8x6s1StHtySssATNNnSn/XvdhBYhHGp1PW1nEhFTxWPZwnnl1 ZAb6CDbJBW3gGYXHI+elF5iaaUvHcP788dG00Xds2+1HNzkGfu2Nru5p/bw2RvRo2Smz femmyRfBhkvPE9ES1cJ8THPOdCIqmmkGIz7na5DgIhQE4It2mGnLRSQI2VNF77qbyhMJ M3cbQtwLfr1FgnclqqssifKf1heKt1PYWJzfym0ZWw0J4A6i0IZdmhPE81gA7C0iO6/Y l8JYEcWSZ8x8iC/NNFx7p+E1DPkjOu2N/G3IubBIyiGd603XBXntdGXafaL/5sxdfG7n OcjA== 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=NMK5r7qOFZY8Uxd9ckNPCz+t0AZEfrMuw3J6cFdjkBE=; fh=BQBVdBxgRn3ybNPskzO2+eFqEyDG/K0xIB6ElYW4MKw=; b=ebq7N5hXjPdItwPmOFJbMIInsiG9yk0dEJOPZr70ThxFBzOCCFaMyZaVXIIIvrT0G/ S3hAXZTaYhL3ipfnwxk8TQ0JXhssjd67AigxKiv1E/d+FaSRjKkBXdaL/80erm1TTcqy zs7bdQk8WAoDJdSPwJn9zuyrCjlXXLHLTk5a4J1t6/3C+2bU+F1ojK3dCjrbwV//yLR6 VJytWW67WSZm8VYQg80bxVDAChIX/JPuSWQFJAAW9PsVX+8kAjIgz7VhnoigIq6rZ7kB 2tMe08OhWNK+cOBTJ/smVjRjylcZGH6Js2qfj2eazEf4VEqi/gMSiUv9DUuHmiY6ha5f xLcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lEbDOclj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id cd5-20020a05622a418500b0043138a4533csi4532226qtb.733.2024.03.24.17.52.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:52:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lEbDOclj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B20D91C21BF6 for ; Mon, 25 Mar 2024 00:52:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF4B81BAC26; Sun, 24 Mar 2024 22:45:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lEbDOclj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C159C13D632; Sun, 24 Mar 2024 22:45:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320304; cv=none; b=JmqaFj8HxTBB+qL6QdoaNY6vxI2HxXWYiKdxRn1ojAcMj0+8f47lyxlDDD8QDiWkI0XE1TJ7kHx6xSdpBjFwyC77HZqYgn6Z4K2kXePogzsqCsl/2/rs4FFeOlS4TvQBX0FRLj/CkMIGvaJam+sB9AW0I5EWo4ync4NdfhHt+qA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320304; c=relaxed/simple; bh=rCzH/9eFRR/LiouFouEjFUiAqjFrdvhNcvyhCFeN2sk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dyz9JVC4tjFAdnqaIjR+QMTqR9PZuvAv1gqcVYfAQ2Xs4F57UZG40+4syHxXYnyH+ZTYjjrsg7eJ9Gb+2klz3pgkWAiZJAeYpFl7yqD2sTDSnF+I+DSuN6X/AdvkRIs0N0BcuXHDAJF2jYxAfDUMCQ5X10DvI1nOR+Wpdd1lyuw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lEbDOclj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D26B3C433C7; Sun, 24 Mar 2024 22:45:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320304; bh=rCzH/9eFRR/LiouFouEjFUiAqjFrdvhNcvyhCFeN2sk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lEbDOclj3obkIBF5SzTiiHSetrAHH+MMhP88mBPSpnZh+5QuTxpvxSvNz7k6EBYgM xDTvk34flxJEb4PV+ucxZ/8y4xnOkZoeZKroTpPwhfxy2/FC3RawKAfXlM0c97ae3d kcswDkbKf0h5EASC8QDVx2aNdZXHPyuH4z/8LF39hLzGnYaHZauFDjt7uw9AKhFAcH oeQ1wPrEAsY/18z/HOoEtxYIRveXi6d/mmfR4wj1g9+bPVyS2p5x67jSfK1sadtRkK X7ApTCZRzTm/XnsdG8kZmEbA5a/9BGizttYFc6chAhf3FnKEDVqQqyxFyM1XJ28AXt rfiC7V9gUSsqg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "Jiri Slaby (SUSE)" , Martin Hostettler , Helge Deller , Greg Kroah-Hartman , Sasha Levin Subject: [PATCH 6.8 612/715] tty: vt: fix 20 vs 0x20 typo in EScsiignore Date: Sun, 24 Mar 2024 18:33:11 -0400 Message-ID: <20240324223455.1342824-613-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: "Jiri Slaby (SUSE)" [ Upstream commit 0e6a92f67c8a94707f7bb27ac29e2bdf3e7c167d ] The if (c >= 20 && c <= 0x3f) test added in commit 7a99565f8732 is wrong. 20 is DC4 in ascii and it makes no sense to consider that as the bottom limit. Instead, it should be 0x20 as in the other test in the commit above. This is supposed to NOT change anything as we handle interesting 20-0x20 asciis far before this if. So for sakeness, change to 0x20 (which is SPACE). Signed-off-by: "Jiri Slaby (SUSE)" Fixes: 7a99565f8732 ("vt: ignore csi sequences with intermediate characters.") Cc: Martin Hostettler Link: https://lore.kernel.org/all/ZaP45QY2WEsDqoxg@neutronstar.dyndns.org/ Tested-by: Helge Deller # parisc STI console Link: https://lore.kernel.org/r/20240122110401.7289-4-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/vt/vt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 38a765eadbe2b..52e6ca1ba21df 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -2469,7 +2469,7 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c) } return; case EScsiignore: - if (c >= 20 && c <= 0x3f) + if (c >= 0x20 && c <= 0x3f) return; vc->vc_state = ESnormal; return; -- 2.43.0