]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Robustify dynamic sample content fetch
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 21 May 2011 18:08:15 +0000 (20:08 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 22 May 2011 01:38:48 +0000 (03:38 +0200)
commitce289d22d193d216f2bf398fe98ac70baa27a47c
treec77e7a64263ecb8fc9f7971a44dd085f14f039f6
parentd189f4a8141974c2bda5400ac6d5451e09fec5ad
perf tools: Robustify dynamic sample content fetch

Ensure the size of the dynamic fields such as callchains
or raw events don't overlap the whole event boundaries.

This prevents from dereferencing junk if the given size of
the callchain goes too eager.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Stephane Eranian <eranian@google.com>
tools/perf/util/evsel.c