]> git.baikalelectronics.ru Git - kernel.git/commit
vc_screen: modify vcs_size() handling in vcs_read()
authorGeorge Kennedy <george.kennedy@oracle.com>
Mon, 27 Feb 2023 20:21:41 +0000 (15:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:29 +0000 (13:55 +0100)
commited79f3f93b69a74daf082a961e1159b780bb9f61
treebd22302ecab0475bdbeaf873ceac2d9df88d1ac5
parentd257ee09d692b0390b3aa2862fd9304e11c97359
vc_screen: modify vcs_size() handling in vcs_read()

[ Upstream commit 52be253b96c5cf51c7b2a4b9791803d685ac566d ]

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

Fixes: 88f6e5afd1cc ("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>
drivers/tty/vt/vc_screen.c