Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1214645
| X-FeedAbuse | http://nntpfeed.proxad.net/abuse.pl feeded by 78.192.65.63 |
|---|---|
| Path | csiph.com!goblin3!goblin1!goblin.stu.neva.ru!proxad.net!feeder1-2.proxad.net!nntpfeed.proxad.net!news.muarf.org!news.ecp.fr!aioe.org!bofh.it!news.nic.it!robomod |
| From | Alexander Shishkin <alexander.shishkin@linux.intel.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/2] perf/x86/intel: Work around BTS leaking kernel addresses |
| Date | Thu, 27 Aug 2015 17:20:02 +0200 |
| Message-ID | <q2785-8ds-11@gated-at.bofh.it> (permalink) |
| X-Original-To | Peter Zijlstra <a.p.zijlstra@chello.nl> |
| X-Extloop1 | 1 |
| X-Ironport-Av | E=Sophos;i="5.17,422,1437462000"; d="scan'208";a="776806935" |
| X-Mailer | git-send-email 2.5.0 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 32 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Ingo Molnar <mingo@redhat.com>, linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo <acme@infradead.org>, Alexander Shishkin <alexander.shishkin@linux.intel.com> |
| X-Original-Date | Thu, 27 Aug 2015 18:13:40 +0300 |
| X-Original-Message-ID | <1440688422-27954-1-git-send-email-alexander.shishkin@linux.intel.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1214645 |
Show key headers only | View raw
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/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[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
csiph-web