Linux Perf Users
 help / color / mirror / Atom feed
From: Dominik Maier <dmnk@google.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>,
	Namhyung Kim <namhyung@kernel.org>,
	 Arnaldo Carvalho de Melo <acme@kernel.org>,
	Marco Elver <elver@google.com>, Jiri Olsa <jolsa@kernel.org>,
	 Mark Rutland <mark.rutland@arm.com>,
	Ian Rogers <irogers@google.com>,
	 linux-perf-users@vger.kernel.org, dmnk+artist@google.com
Subject: Re: [PATCH] perf/hw_breakpoint: fix ctx->mutex vs perf_event_mutex inversion on attr modify
Date: Tue, 24 Nov 2026 18:11:48 +0000	[thread overview]
Message-ID: <20261124181148.144716-1-dmnk@google.com> (raw)
In-Reply-To: <20261120115601.GQ2668564@noisy.programming.kicks-ass.net>

Hi Peter,

Thanks for checking. I'll switch the second Fixes tag to 82aad7ff7ac2.

For the lock: since perf_event_modify_attr() walks child_list inside
ctx->mutex, hoisting each target task's perf_event_mutex out doesn't
look workable. Would you prefer a dedicated mutex on task_struct under
CONFIG_HAVE_HW_BREAKPOINT, or a larger cacheline-aligned hash table?

Best
Dominik

      reply	other threads:[~2026-11-24 18:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 19:22 [PATCH] perf/hw_breakpoint: fix ctx->mutex vs perf_event_mutex inversion on attr modify Dominik Maier
2026-11-19 19:31 ` sashiko-bot
2026-11-20 11:56 ` Peter Zijlstra
2026-11-24 18:11   ` Dominik Maier [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=20261124181148.144716-1-dmnk@google.com \
    --to=dmnk@google.com \
    --cc=acme@kernel.org \
    --cc=dmnk+artist@google.com \
    --cc=elver@google.com \
    --cc=irogers@google.com \
    --cc=jolsa@kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    /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