From: sashiko-bot@kernel.org
To: "Dominik Maier" <dmnk@google.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v2] perf/core: check perf_allow_kernel() in PERF_EVENT_IOC_SET_FILTER
Date: Tue, 24 Nov 2026 18:11:38 +0000 [thread overview]
Message-ID: <sashiko-outbox-231800@kernel.org> (raw)
In-Reply-To: <20261124180611.75836-1-dmnk@google.com>
> Under perf_event_paranoid = 2, an unprivileged caller can open a
> task-scoped counting trace event (including tracepoints and tracefs
> uprobes) with attr.exclude_kernel = 1 and attach trace event filters via
> PERF_EVENT_IOC_SET_FILTER without passing perf_allow_kernel(). Trace
> event filter predicates are parsed by create_filter() and support kernel
> symbol and address matching (such as the .function modifier), exposing
> kernel address information to callers that are not allowed kernel
> profiling.
>
> Require perf_allow_kernel() before applying trace event filters in
> perf_event_set_filter().
>
> Suggested-by: Steven Rostedt <rostedt@goodmis.org>
> Signed-off-by: Dominik Maier <dmnk@google.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261124180611.75836-1-dmnk@google.com?part=1
prev parent reply other threads:[~2026-11-24 18:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 18:06 [PATCH v2] perf/core: check perf_allow_kernel() in PERF_EVENT_IOC_SET_FILTER Dominik Maier
2026-11-24 18:11 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-231800@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dmnk@google.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox