android_kernel_samsung_msm8976/drivers/tty
Scot Doyle 983cbbffb0 vt: clear selection before resizing
commit 009e39ae44f4191188aeb6dfbf661b771dbbe515 upstream.

When resizing a vt its selection may exceed the new size, resulting in
an invalid memory access [1]. Clear the selection before resizing.

[1] http://lkml.kernel.org/r/CACT4Y+acDTwy4umEvf5ROBGiRJNrxHN4Cn5szCXE5Jw-d1B=Xw@mail.gmail.com

Reported-and-tested-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Scot Doyle <lkml14@scotdoyle.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:42:25 +02:00
..
hvc
ipwireless
serial This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
vt vt: clear selection before resizing 2019-07-27 21:42:25 +02:00
amiserial.c
bfin_jtag_comm.c
cyclades.c
ehv_bytechan.c
goldfish.c
isicom.c
Kconfig
Makefile
metag_da.c
moxa.c
moxa.h
mxser.c
mxser.h
n_gsm.c
n_hdlc.c tty: n_hdlc: get rid of racy n_hdlc.tbuf 2017-04-22 23:02:57 +02:00
n_r3964.c
n_smux.c
n_tracerouter.c
n_tracesink.c
n_tracesink.h
n_tty.c
nozomi.c
pty.c pty: make sure super_block is still valid in final /dev/tty close 2016-02-25 11:57:46 -08:00
rocket.c
rocket.h
rocket_int.h
smux_ctl.c
smux_debug.c
smux_loopback.c
smux_loopback.h
smux_private.h
smux_test.c
synclink.c
synclink_gt.c
synclinkmp.c
sysrq.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
tty_audit.c
tty_buffer.c
tty_io.c tty: Fix unsafe ldisc reference via ioctl(TIOCGETD) 2016-09-06 12:24:29 -07:00
tty_ioctl.c
tty_ldisc.c BACKPORT: tty: Prevent ldisc drivers from re-using stale tty fields 2016-12-12 00:13:43 -08:00
tty_ldsem.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
tty_mutex.c
tty_port.c