projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b7019a
)
perf: Fix stack data leak
author
Arjan van de Ven
<arjan@linux.intel.com>
Tue, 21 Jul 2009 07:55:05 +0000
(
00:55
-0700)
committer
Peter Zijlstra
<a.p.zijlstra@chello.nl>
Wed, 22 Jul 2009 16:05:55 +0000
(18:05 +0200)
the "reserved" field was not initialized to zero, resulting in 4 bytes
of stack data leaking to userspace....
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
kernel/perf_counter.c
patch
|
blob
|
history
diff --git
a/kernel/perf_counter.c
b/kernel/perf_counter.c
index
5c6fae4
..
ff854fd
100644
(file)
--- a/
kernel/perf_counter.c
+++ b/
kernel/perf_counter.c
@@
-2666,6
+2666,7
@@
static void perf_counter_output(struct perf_counter *counter, int nmi,
header.size += sizeof(cpu_entry);
cpu_entry.cpu = raw_smp_processor_id();
+ cpu_entry.reserved = 0;
}
if (sample_type & PERF_SAMPLE_PERIOD)