commit | ee8b593affdf893012e57f4c54a21984d1b0d92e | [log] [tgz] |
---|---|---|
author | Jiri Slaby <jslaby@suse.cz> | Tue Aug 07 21:47:39 2012 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Aug 10 13:29:57 2012 -0700 |
tree | f1c00109d602344142a66ecfa2bca504ce2387bd | |
parent | f06fb543c1d0cbd721250b72ee1244178a38aa9d [diff] |
TTY: ttyprintk, don't touch behind tty->write_buf 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: stable@vger.kernel.org (everything maintained past v2.6.37) Cc: Samo Pogacnik <samo_pogacnik@t-2.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>