Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1214645 > unrolled thread

[PATCH 0/2] perf/x86/intel: Work around BTS leaking kernel addresses

Started byAlexander Shishkin <alexander.shishkin@linux.intel.com>
First post2015-08-27 17:20 +0200
Last post2015-08-27 17:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] perf/x86/intel: Work around BTS leaking kernel addresses Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2015-08-27 17:20 +0200

#1214645 — [PATCH 0/2] perf/x86/intel: Work around BTS leaking kernel addresses

FromAlexander Shishkin <alexander.shishkin@linux.intel.com>
Date2015-08-27 17:20 +0200
Subject[PATCH 0/2] perf/x86/intel: Work around BTS leaking kernel addresses
Message-ID<q2785-8ds-11@gated-at.bofh.it>
Hi Peter,

Due to imprecise IP sampling, BTS may (and often does) leak kernel
addresses when kernel tracing is not even enabled, which results in
mostly syscall entry points and page_fault handler addresses being
exposed. This might be a security concern for the address
randomization, and it also makes life harder for gdb that makes use of
bts samples.

This patchset works around the old (DS) driver and disables the new
(intel_bts) for the unprivileged users on systems where perf paranoia
level prohibits kernel tracing.

Not sure if these should be treated as bugfixes.

Alexander Shishkin (2):
  perf/x86/intel/ds: Work around BTS leaking kernel addresses
  perf/x86/intel/bts: Disallow use by unprivileged users on paranoid
    systems

 arch/x86/kernel/cpu/perf_event_intel_bts.c | 10 ++++++++
 arch/x86/kernel/cpu/perf_event_intel_ds.c  | 40 +++++++++++++++++++++++++-----
 2 files changed, 44 insertions(+), 6 deletions(-)

-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web