From: Jiri Slaby Date: Tue, 7 Aug 2012 19:47:39 +0000 (+0200) Subject: TTY: ttyprintk, don't touch behind tty->write_buf X-Git-Tag: v3.2.32~142 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49167eecdec7620e15678f7a0ac30c4e8e4b32db;p=pandora-kernel.git 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 Cc: Samo Pogacnik Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed