summaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2008-12-11 16:10:08 +0100
committerIngo Molnar <mingo@elte.hu>2008-12-12 09:26:12 +0100
commit8001530d5af707eb9a158839c8f651eb6c1cb3c2 (patch)
tree052788f8eb59b13bb7d1edf691150dbc7a54901b /include/trace
parentf3134de60624829a57741c1f3796847d4de165f6 (diff)
downloadlinux-8001530d5af707eb9a158839c8f651eb6c1cb3c2.tar.gz
linux-8001530d5af707eb9a158839c8f651eb6c1cb3c2.tar.bz2
linux-8001530d5af707eb9a158839c8f651eb6c1cb3c2.zip
tracing/fastboot: fix len of func buffer
Impact: fix possible stack overrun This is a port of a patch included in the mainline (KSYM_SYMBOL_LEN fixes). The current func len is not large enough to contain the max symbol len, the right size must be KSYM_SYMBOL_LEN. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/boot.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/boot.h b/include/trace/boot.h
index 6b54537eab02..3ec58b4b7512 100644
--- a/include/trace/boot.h
+++ b/include/trace/boot.h
@@ -9,7 +9,7 @@
*/
struct boot_trace_call {
pid_t caller;
- char func[KSYM_NAME_LEN];
+ char func[KSYM_SYMBOL_LEN];
};
/*
@@ -17,7 +17,7 @@ struct boot_trace_call {
* while it returns.
*/
struct boot_trace_ret {
- char func[KSYM_NAME_LEN];
+ char func[KSYM_SYMBOL_LEN];
int result;
unsigned long long duration; /* nsecs */
};