Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0dc3d523 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Linus Torvalds
Browse files

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: default avatarArjan van de Ven <arjan@linux.intel.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 61fe0870
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2665,6 +2665,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)