]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Check we are able to read the event size on mmap
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 21 May 2011 15:07:24 +0000 (17:07 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 22 May 2011 01:12:13 +0000 (03:12 +0200)
commit6fdfd5bea063c0df53eee3e14eedf93dbfe2e487
treeea59e724cec133e301cd73306e31362a1ddfe8f3
parente731e1103f24a5c348d5f38d013d0b8e8e4773c0
perf tools: Check we are able to read the event size on mmap

Check we have enough mmaped space to read the current event
size from its headers, otherwise we may dereference some
hell there.

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/session.c