projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87847b8
)
perf_counter: Fix stack corruption in perf_read_hw
author
Marti Raudsepp
<marti@juffo.org>
Fri, 12 Jun 2009 23:35:01 +0000
(
02:35
+0300)
committer
Ingo Molnar
<mingo@elte.hu>
Sat, 13 Jun 2009 10:58:24 +0000
(12:58 +0200)
With PERF_FORMAT_ID, perf_read_hw now needs space for up to 4 values.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/perf_counter.c
b/kernel/perf_counter.c
index 8d14a733f222b65e34ccefd671a10ff4e6afffcf..e914daff03b5de2abad89e8f2dede294ca246c1f 100644
(file)
--- a/
kernel/perf_counter.c
+++ b/
kernel/perf_counter.c
@@
-1553,7
+1553,7
@@
static int perf_release(struct inode *inode, struct file *file)
static ssize_t
perf_read_hw(struct perf_counter *counter, char __user *buf, size_t count)
{
- u64 values[
3
];
+ u64 values[
4
];
int n;
/*