Skip to content

fix out-of-bounds access when specifying invalid console

Sven Schnelle linux-s390 lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v11 patch 3 repliesSuperseded

Changes in v2 from the cover letter

- trim commit message in first patch
- add second patch as suggested by Jiri Slaby

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tty: fix out-of-bounds access in tty_driver_lookup_tty()drivers/tty/tty_io.c+5 -30 replies
2/2tty/vt: prevent registration of console with invalid numberdrivers/tty/vt/vt.c+6 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJiri Slaby
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [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(-)
Signature · 1 line
2.34.1