linux_dsm_epyc7002/drivers/tty/vt
Adam Borowski 6987dc8a70 vt: fix unchecked __put_user() in tioclinux ioctls
Only read access is checked before this call.

Actually, at the moment this is not an issue, as every in-tree arch does
the same manual checks for VERIFY_READ vs VERIFY_WRITE, relying on the MMU
to tell them apart, but this wasn't the case in the past and may happen
again on some odd arch in the future.

If anyone cares about 3.7 and earlier, this is a security hole (untested)
on real 80386 CPUs.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
CC: stable@vger.kernel.org # v3.7-
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-09 11:07:36 +02:00
..
.gitignore
consolemap.c vt: use copy_from/to_user instead of __get/put_user for scrnmap ioctls 2017-06-09 11:07:36 +02:00
cp437.uni
defkeymap.c_shipped
defkeymap.map
keyboard.c sched/headers: Remove duplicate #include <linux/sched/debug.h> line 2017-03-28 09:56:03 +02:00
Makefile tty: vt/Makefile: set the variables to static 2013-01-15 21:52:24 -08:00
selection.c vt: make mouse selection of non-ASCII consistent 2017-04-11 21:39:15 +02:00
vc_screen.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
vt_ioctl.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00
vt.c vt: fix unchecked __put_user() in tioclinux ioctls 2017-06-09 11:07:36 +02:00