aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/amba-pl011.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-08-07 21:47:39 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-07 08:27:25 -0700
commit63959b0e2174f0006f2cdbc7fb06c09b033a0920 (patch)
tree030c6d484d9f0262129bd86f97b6326e2d9d9cfb /drivers/tty/serial/amba-pl011.c
parent0950902e1cf419d6fa060ed5f59e7cecd2400028 (diff)
downloadkernel_samsung_smdk4412-63959b0e2174f0006f2cdbc7fb06c09b033a0920.zip
kernel_samsung_smdk4412-63959b0e2174f0006f2cdbc7fb06c09b033a0920.tar.gz
kernel_samsung_smdk4412-63959b0e2174f0006f2cdbc7fb06c09b033a0920.tar.bz2
TTY: ttyprintk, don't touch behind tty->write_buf
commit ee8b593affdf893012e57f4c54a21984d1b0d92e upstream. If a user provides a buffer larger than a tty->write_buf chunk and passes '\r' at the end of the buffer, we touch an out-of-bound memory. Add a check there to prevent this. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Samo Pogacnik <samo_pogacnik@t-2.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/amba-pl011.c')
0 files changed, 0 insertions, 0 deletions