Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2729037lqp; Mon, 25 Mar 2024 07:44:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCTCQqqVGJKD00XwJ+gwzqYzjTh57L5zOujq/H5E7h/iIg2cka+746FKZu2y2Dl4AS1l4eMrxCwkk9DbA5hAkRt8v+GZlJylVkxq6M3w== X-Google-Smtp-Source: AGHT+IGCW6ijgL0/9ab8OTtALVB/Qk2xU/GS98bz4SEmpjUbiBweaGTB21sKz/lAX4nUSwTUy+4k X-Received: by 2002:a05:6358:560c:b0:17b:759:65c2 with SMTP id b12-20020a056358560c00b0017b075965c2mr8273935rwf.10.1711377877527; Mon, 25 Mar 2024 07:44:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711377877; cv=pass; d=google.com; s=arc-20160816; b=QrPNecs2/+8PeicKMNFp8LkBZgPcuRoN5H+OUTTshC0lZYQ+7Woki7kwKV65jLV3Js OJ3Ee8IfKaVt9Jvzry3t9+LCqqfxIaAanohMpwQRcBkbTyctT0xwp6POz4cKHv0hcf1i NuLtQmBYDzX7fh96Po9k4hJQfUv0Moa3tXRQk55R2So20Y4sEn6bcyHP+cLJY+vST/zw KsrYvKEbzTpSeZ3llPEI0/Ml24eSBu4NQnHglHzexomDYZEjkNJ5H7SUjsryc3LCPWGq ONOT5RJM2wJcLcgL1Mml1Ayd3ohJWJw/rqLpdyVvUCybxlHC5DNciKW9fQ8AD4F+1cic uU4A== 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=RGp082VDwp4O1jk5ZblQwBUcWK8SDYiCiEX9YUtPKn8=; fh=BQBVdBxgRn3ybNPskzO2+eFqEyDG/K0xIB6ElYW4MKw=; b=zkYRsZgWhd3xd384zmfbuEa71XVuNXwcgQh+fwoDAoWqAQDw0fCs+BavcPDAMbyTyh p2mUW68DahlycSwBYN20HD7cg43bFLfrEmLXK8T+9jcTTM5yy68m/8c84nmbI8uTEOyu ejtG4JvpaYDEBP4J9fFi95BuU0hXUtplQFEhJesrSpt0jLjhDSUNfFEnnj1iNBSvMcAS 28cF6cDM1pcECyZu/NbVfknJaIPN5ei0XqSK0Wor18FcpF7aRMoxR6DAb3yF8/Q+hOI8 iSkaDNokU+nBji01neaqB2/3tPjdSQp1orPMAbVpiSVq6p81t5zALCIfily1jGwxh0un rtUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gLH4/u0E"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o5-20020a63f145000000b005cfda2f8f08si7645295pgk.452.2024.03.25.07.44.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:44:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gLH4/u0E"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116211-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 20992BA0E88 for ; Mon, 25 Mar 2024 11:47:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91033291B97; Mon, 25 Mar 2024 03:34:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gLH4/u0E" 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 D018717D229; Sun, 24 Mar 2024 23:43:51 +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=1711323831; cv=none; b=dRo2JHNcJt3OXpXLoo8CrWly1P7pqzCYNWjdAupGPPF39nTDSNqEsk2Tod0HbfgvTONweIJD7GlaJaAvhE7NykxkblgCAfrROiyjRR+eTtqiZUtDfhva/xzqD6aHEuAvCW3VS0Y4g8a4YNAcRDJ5qKpRK4fp2u9vaT9EpYIV+wY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323831; c=relaxed/simple; bh=3KA8CrEYQnz4vWq8t8Ue7MOGPQ3DZuEOWH3hf2mDdfc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iFFDKoLTGtH01HKkKmdMK0Y89m7YfS0EZ0jF31gFZwyHkd0KA1vYDKeWKAHaOtHaHJqZkmx22V/D9lGu7ybWg4g4fYyeFatQBdwgRsjFamaQ7FhWgV2Ik2Xw4YZrlVWNKhF/eIKGcL6gNIWTHtKaoMcefixUOUkd9zuljyb8QOE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gLH4/u0E; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E265EC433C7; Sun, 24 Mar 2024 23:43:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323831; bh=3KA8CrEYQnz4vWq8t8Ue7MOGPQ3DZuEOWH3hf2mDdfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gLH4/u0EZG0TUA2MWb0Q16nasABaT1i4OpSkESq8zKyd06vxRXL5k9nOG6dAAjO6M lyY2Xi1ICdOvpCHMHqUpsZSHlJcVncFUa0nM+SIpa2sunyfyt2QPDzIrmYRrLfH3A+ +nrBtib0FM+0NwsM58doWXTuVUkHCSdXRR+X1gP8KppvdkWBGdV7yG8mXyhHHmeI3x 0Ihv3CDiSUyBRE8OBFJPzcGIj/UMDs18YRxV+8E6pmLPwX8gYAE9ksoxx8QqPC52oI xFLrffsRL6Lwq6e0RM7drot84mZSB1M4MnrWmlf0GEzaiTLDK8ZA42IevgO/zGng+/ d9+ZzAWLA+Jig== 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 5.10 210/238] tty: vt: fix 20 vs 0x20 typo in EScsiignore Date: Sun, 24 Mar 2024 19:39:58 -0400 Message-ID: <20240324234027.1354210-211-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234027.1354210-1-sashal@kernel.org> References: <20240324234027.1354210-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 0252c0562dbc8..df645d127e401 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -2516,7 +2516,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