aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorAlexander Shishkin <[email protected]>2017-10-23 12:35:33 +0000
committerIngo Molnar <[email protected]>2017-10-24 11:19:27 +0000
commit2eece390bf68ec8f733d7e4a3ba8a5ea350082ae (patch)
tree94e5167d90a56e6437789583a626ca34a090b27b /tools/perf/util/annotate.c
parentMerge tag 'platform-drivers-x86-v4.14-3' of git://git.infradead.org/linux-pla... (diff)
downloadkernel-2eece390bf68ec8f733d7e4a3ba8a5ea350082ae.tar.gz
kernel-2eece390bf68ec8f733d7e4a3ba8a5ea350082ae.zip
perf/x86/intel/bts: Fix exclusive event reference leak
Commit: d2878d642a4ed ("perf/x86/intel/bts: Disallow use by unprivileged users on paranoid systems") ... adds a privilege check in the exactly wrong place in the event init path: after the 'LBR exclusive' reference has been taken, and doesn't release it in the case of insufficient privileges. After this, nobody in the system gets to use PT or LBR afterwards. This patch moves the privilege check to where it should have been in the first place. Signed-off-by: Alexander Shishkin <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Fixes: d2878d642a4ed ("perf/x86/intel/bts: Disallow use by unprivileged users on paranoid systems") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions