tracing: Fix an unallocated memory access in function_graph
commit19349f0ea9199816e06c0de3a4e66755ed50c3d1
authorShaohua Li <shaohua.li@intel.com>
Tue, 27 Jul 2010 08:06:34 +0000 (27 16:06 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:43:23 +0000 (26 16:43 -0700)
tree8d474ca599dbd3cd2bd978b1867743f6f5dfc6e0
parent28d07211a380ec003784c454c6438c72e458c5ef
tracing: Fix an unallocated memory access in function_graph

commit 575570f02761bd680ba5731c1dfd4701062e7fb2 upstream.

With CONFIG_DEBUG_PAGEALLOC, I observed an unallocated memory access in
function_graph trace. It appears we find a small size entry in ring buffer,
but we access it as a big size entry. The access overflows the page size
and touches an unallocated page.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
LKML-Reference: <1280217994.32400.76.camel@sli10-desk.sh.intel.com>
[ Added a comment to explain the problem - SDR ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/trace/trace_functions_graph.c