]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/perf_counter.c
perf: Fix stack data leak
[net-next-2.6.git] / kernel / perf_counter.c
index 5c6fae4f43d88c08b1532d4b72d009e2327ae7b5..ff854fd89a8145f34201cd7fb8c302bfa50bfdc5 100644 (file)
@@ -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)