diff options
| author | Michael Gehring <mg@ebfe.org> | 2012-03-21 04:26:45 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-09 23:10:23 +0400 |
| commit | 871bdea6f8c64517635bec352b8bec6b72a26d80 (patch) | |
| tree | 786a6dede8222338409a05e316cf58435ee97e72 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | ef4f9d4f09265b60fcb6bfa31a614ea84a72b7a8 (diff) | |
| download | linux-871bdea6f8c64517635bec352b8bec6b72a26d80.tar.xz | |
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>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
