Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf: fix stack data leak

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>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Arjan van de Ven and committed by
Linus Torvalds
0dc3d523 61fe0870

+1
+1
kernel/perf_counter.c
··· 2665 2665 header.size += sizeof(cpu_entry); 2666 2666 2667 2667 cpu_entry.cpu = raw_smp_processor_id(); 2668 + cpu_entry.reserved = 0; 2668 2669 } 2669 2670 2670 2671 if (sample_type & PERF_SAMPLE_PERIOD)