mirror-linux/drivers/tty/vt
George Kennedy d6e15f8de5 vc_screen: modify vcs_size() handling in vcs_read()
[ Upstream commit 46d733d0ef ]

Restore the vcs_size() handling in vcs_read() to what
it had been in previous version.

Fixes: 226fae124b ("vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF")
Suggested-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: George Kennedy <george.kennedy@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 13:55:29 +01:00
..
.gitignore
Makefile
conmakehash.c
consolemap.c tty/vt: consolemap: use E_TABSZ for the translations size 2022-06-27 14:17:12 +02:00
cp437.uni
defkeymap.c_shipped
defkeymap.map
keyboard.c
selection.c
vc_screen.c vc_screen: modify vcs_size() handling in vcs_read() 2023-03-11 13:55:29 +01:00
vt.c Merge 6.0-rc4 into tty-next 2022-09-05 07:59:28 +02:00
vt_ioctl.c