linux/drivers/tty/vt
George Kennedy 1221d11e5c vt_ioctl: change VT_RESIZEX ioctl to check for error return from vc_resize()
commit bc5269ca76 upstream.

vc_resize() can return with an error after failure. Change VT_RESIZEX ioctl
to save struct vc_data values that are modified and restore the original
values in case of error.

Signed-off-by: George Kennedy <george.kennedy@oracle.com>
Cc: stable <stable@vger.kernel.org>
Reported-by: syzbot+38a3699c7eaf165b97a6@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/1596213192-6635-2-git-send-email-george.kennedy@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-09-03 11:24:27 +02:00
..
.gitignore
consolemap.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
cp437.uni
defkeymap.c_shipped
defkeymap.map
keyboard.c vt: keyboard: avoid signed integer overflow in k_ascii 2020-06-10 21:35:00 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
selection.c vt: selection, introduce vc_is_sel 2020-04-02 15:28:22 +02:00
vc_screen.c vcs: prevent write access to vcsu devices 2019-12-13 08:52:51 +01:00
vt_ioctl.c vt_ioctl: change VT_RESIZEX ioctl to check for error return from vc_resize() 2020-09-03 11:24:27 +02:00
vt.c vt: defer kfree() of vc_screenbuf in vc_do_resize() 2020-09-03 11:24:27 +02:00