Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1084923rwb; Thu, 19 Jan 2023 06:30:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXtO6bZguY9hyMYsVpYHG2SVmdis4DegCxTUFnyH6RyckHro1dJp411+DUB/EJAV2pjapa1a X-Received: by 2002:a05:6a00:70b:b0:582:a212:d92c with SMTP id 11-20020a056a00070b00b00582a212d92cmr12740908pfl.10.1674138616698; Thu, 19 Jan 2023 06:30:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674138616; cv=none; d=google.com; s=arc-20160816; b=Bb37ZbAZdlYQVrUoI5JhAzOuArO9vy8iERX6Cw5rXNG2ZDgl34F+1B6wdgs/RkNDzw aTSQ0usKgaTG3VItL4mSdVR3Aw8Lxqtcg/f9m6sdVLYw2CCr510fwCJ2mTxFyayxiz+M y5ir25jfu9mFr5hYRyX73zz+seOr+ul0aNcJGYL/KSLhie6gmCwB062MQBONtF7cZP2Y FYaWvhnpz/ZNVFkLelbUrnnjPT7cyys79C1zWd/VmAR05bJq71yS1w2h8XSPgidx9HBg q64PZvDQljsW26IqdWI8m+BjhqPL/dHzzVEaXhR+crI5r465bnKkoExuzVlxwrZCcBiU VaWg== 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=dAcMdofc5KlNS+mmqUKn9I7wxcuAGnSSNugf6vjQz6A=; b=ijF4mYBvGA4QgYVcGJRgF2DpjVwcjE+v1mWTt21N7cJnJbeoi7n/VbOF8ZdEjvq/g8 gfC0xMfvFKr+8wjfz4dGt7DYmk9iKKJJG2Hm/n/8DWxtG1bGhbm+PwVeyysc3uJW9zVI 7B1+PowYVaiN+w5ju1uapiJ1LsOTuMQeK3vY9PZbbsth1aMOrp+ggypS79X7U1/5uxJB v3fkRL2xukOHwGHRTBQdUb/UkLNSN6ty0vyyOZ3khFs2vI2LULPq/vIXaYcWyyUZGnqB Z0ewKLeQlkgf50M6oD3Nm3XgXsI90/Bt/R6f/LlzQS8loOD4vbyBkB95aokQYhuwYayW NrAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R+WBUwyU; 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 y18-20020a056a00191200b00587df49bfa6si35823935pfi.75.2023.01.19.06.30.09; Thu, 19 Jan 2023 06:30:16 -0800 (PST) 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=R+WBUwyU; 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 S231345AbjASOFA (ORCPT + 45 others); Thu, 19 Jan 2023 09:05:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjASOE4 (ORCPT ); Thu, 19 Jan 2023 09:04:56 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 361B926B0; Thu, 19 Jan 2023 06:04:55 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 7766BCE22B1; Thu, 19 Jan 2023 14:04:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51A4EC433D2; Thu, 19 Jan 2023 14:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1674137091; bh=gnM0aF25mfMtoSW5Jtq0KcQ6CpBJFX2/gUgnyKab6aE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R+WBUwyUX9r9ew85BwDT6f4mopSskOyprmZFXKFKVpw5cAfwk76ywX0DiuYfKsMR7 WlZn2EYIBOc4VZoqcBUvvqwLFUxxmZmTx8B5dnKMbp/2GLatFipzDLr3OFqCeBpr48 SjecCr/l3f3dCOiEhylhdNTVTFv8TKYAX/Je/Ho4= Date: Thu, 19 Jan 2023 15:04:49 +0100 From: Greg Kroah-Hartman To: Sven Schnelle Cc: Jiri Slaby , Christian Borntraeger , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [PATCH v2 0/2] fix out-of-bounds access when specifying invalid console Message-ID: References: <20221209112737.3222509-1-svens@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 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 On Wed, Jan 04, 2023 at 08:20:49AM +0100, Sven Schnelle wrote: > Sven Schnelle writes: > > > Hi, > > > > these two patches fix a crash in the tty driver when a user specifies an > > invalid console like 'console=tty3000'. The first patch adds a check to > > tty_driver_lookup_tty(), the second one prevents that such a console gets > > registered in the vt driver. > > > > Changes in v2: > > - trim commit message in first patch > > - add second patch as suggested by Jiri Slaby > > > > Sven Schnelle (2): > > tty: fix out-of-bounds access in tty_driver_lookup_tty() > > tty/vt: prevent registration of console with invalid number > > > > drivers/tty/tty_io.c | 8 +++++--- > > drivers/tty/vt/vt.c | 6 ++++++ > > 2 files changed, 11 insertions(+), 3 deletions(-) > > Gentle ping... I couldn't find that this was applied anywhere? Sorry, still digging out of a lot of patches...