From: Steven Rostedt (Red Hat) Date: Fri, 14 Nov 2014 20:49:41 +0000 (-0500) Subject: tracing: Use trace_seq_used() and seq_buf_used() instead of len X-Git-Tag: omap-for-v3.20/drop-legacy-3517~136^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ac48378414dccca735897c4d7f4e19987c8977c;p=pandora-kernel.git tracing: Use trace_seq_used() and seq_buf_used() instead of len As the seq_buf->len will soon be +1 size when there's an overflow, we must use trace_seq_used() or seq_buf_used() methods to get the real length. This will prevent buffer overflow issues if just the len of the seq_buf descriptor is used to copy memory. Link: http://lkml.kernel.org/r/20141114121911.09ba3d38@gandalf.local.home Reported-by: Petr Mladek Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed