tracing: Add paranoid size check in trace_printk_seq()
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 19 Nov 2014 15:56:41 +0000 (10:56 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 20 Nov 2014 03:01:16 +0000 (22:01 -0500)
commit820b75f63d0152dbb9ff4accf274408592d613f2
treeffe2dd4764a94f0d84877b45b9a14f59d5e63c93
parent5ac48378414dccca735897c4d7f4e19987c8977c
tracing: Add paranoid size check in trace_printk_seq()

To be really paranoid about writing out of bound data in
trace_printk_seq(), add another check of len compared to size.

Link: http://lkml.kernel.org/r/20141119144004.GB2332@dhcp128.suse.cz
Suggested-by: Petr Mladek <pmladek@suse.cz>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c