mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
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> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
This commit is contained in:
parent
9b7019ae6a
commit
c9f73a3dd2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user