[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221209112737.3222509-1-svens@linux.ibm.com>
Date: Fri, 9 Dec 2022 12:27:35 +0100
From: Sven Schnelle <svens@...ux.ibm.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>
Cc: Christian Borntraeger <borntraeger@...ibm.com>,
linux-kernel@...r.kernel.org, linux-s390@...r.kernel.org
Subject: [PATCH v2 0/2] fix out-of-bounds access when specifying invalid console
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(-)
--
2.34.1
Powered by blists - more mailing lists