linux/drivers/tty/vt
Edward Adam Davis fc702e7df4 vt: move vc_saved_screen to within tty allocated judgment
Everything starts with the assumption that a tty has been allocated.
Therefore, Move it to within the tty allocation check.

Fixes: 23743ba647 ("vt: add support for smput/rmput escape codes")
Reported-by: syzbot+f6cb41c144427dc0796a@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=f6cb41c144427dc0796a
Tested-by: syzbot+f6cb41c144427dc0796a@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/tencent_CAD45DB31906CF890DBB25AB0DED12205D07@qq.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-12 15:58:41 +02:00
..
.gitignore vt: create ucs_fallback_table.h_shipped with gen_ucs_fallback_table.py 2025-05-21 13:39:45 +02:00
Makefile vt: add ucs_get_fallback() 2025-05-21 13:39:45 +02:00
conmakehash.c tty: vt: conmakehash: remove non-portable code printing comment header 2024-08-13 11:06:29 +02:00
consolemap.c tty/vt: use guard()s 2025-08-17 12:46:26 +02:00
cp437.uni
defkeymap.c_shipped vt: defkeymap: Map keycodes above 127 to K_HOLE 2025-07-22 18:53:56 +02:00
defkeymap.map
gen_ucs_fallback_table.py vt: process the full-width ASCII fallback range programmatically 2025-05-21 13:39:45 +02:00
gen_ucs_recompose_table.py vt: move UCS tables to the "shipped" form 2025-04-26 11:22:04 +02:00
gen_ucs_width_table.py vt: move UCS tables to the "shipped" form 2025-04-26 11:22:04 +02:00
keyboard.c vt: keyboard: Don't process Unicode characters in K_OFF mode 2025-07-22 18:53:50 +02:00
selection.c tty/vt: use guard()s 2025-08-17 12:46:26 +02:00
ucs.c vt: fix kernel-doc warnings in ucs_get_fallback() 2025-06-19 13:27:36 +02:00
ucs_fallback_table.h_shipped vt: process the full-width ASCII fallback range programmatically 2025-05-21 13:39:45 +02:00
ucs_recompose_table.h_shipped vt: move UCS tables to the "shipped" form 2025-04-26 11:22:04 +02:00
ucs_width_table.h_shipped vt: move UCS tables to the "shipped" form 2025-04-26 11:22:04 +02:00
vc_screen.c tty/vt: use guard()s 2025-08-17 12:46:26 +02:00
vt.c vt: move vc_saved_screen to within tty allocated judgment 2025-09-12 15:58:41 +02:00
vt_ioctl.c tty/vt: Add missing return value for VT_RESIZE in vt_ioctl() 2025-09-06 15:49:55 +02:00