linux/drivers/tty/vt
Michael Gehring 871bdea6f8 tty/vt: handle bad user buffer in {G,P}IO_CMAP ioctl
set_get_cmap() ignored the result of {get,put}_user(), causing ioctl(vt,
{G,P}IO_CMAP, 0xdeadbeef) to silently fail.

Another side effect of this: calling the PIO_CMAP ioctl with an invalid
buffer would zero the default colormap and the palette for all vts (all
colors set to black).

Leave the default colormap intact and return -EFAULT when
reading/writing to the userspace buffer fails.

Signed-off-by: Michael Gehring <mg@ebfe.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-09 12:10:23 -07:00
..
.gitignore
Makefile
consolemap.c TTY: Wrong unicode value copied in con_set_unimap() 2012-03-15 13:28:52 -07:00
cp437.uni
defkeymap.c_shipped
defkeymap.map
keyboard.c vt: NULL dereference in vt_do_kdsk_ioctl() 2012-03-12 10:21:55 -07:00
selection.c vt: tackle the main part of the selection logic 2012-03-08 11:11:39 -08:00
vc_screen.c vt: push down the tty lock so we can see what is left to tackle 2012-03-08 11:10:27 -08:00
vt.c tty/vt: handle bad user buffer in {G,P}IO_CMAP ioctl 2012-04-09 12:10:23 -07:00
vt_ioctl.c vt: waitevent is self locked so drop the tty_lock 2012-03-08 11:10:28 -08:00