]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commitfa6963b2481beff8b11f76006fbb63fdbbf2d2d7
tree001ec6fcaf0524ba07d950c1d983722513fff73a
parentb395cd8a74b4a8d943dd4b5585e676f62f7350b3
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