]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Check perf.data owner
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 19 Aug 2009 09:18:26 +0000 (11:18 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 19 Aug 2009 13:25:51 +0000 (15:25 +0200)
commitda05278f2a0511709a00668a30c76e944a3ec14e
tree001ec6fcaf0524ba07d950c1d983722513fff73a
parent28270b02697f1c43ef999b7bb6b8c7aecee109fc
perf tools: Check perf.data owner

Add an owner check to opening perf.data files and a switch to
silence it.

Because perf-report/perf-annotate are binary parsers reading
another users' perf.data file could be a security risk if the
file were explicitly engineered to trigger bugs in the parser
(we hope of course there are non such bugs, but you never
know).

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <20090819092023.896648538@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-annotate.c
tools/perf/builtin-report.c