[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250507172917.0b4e3043@gandalf.local.home>
Date: Wed, 7 May 2025 17:29:17 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Paul Cacheux via B4 Relay <devnull+paulcacheux.gmail.com@...nel.org>
Cc: paulcacheux@...il.com, Masami Hiramatsu <mhiramat@...nel.org>, Mathieu
Desnoyers <mathieu.desnoyers@...icios.com>, Namhyung Kim
<namhyung@...nel.org>, linux-kernel@...r.kernel.org,
linux-trace-kernel@...r.kernel.org
Subject: Re: [PATCH v3 2/2] tracing: protect trace_probe_log with mutex
On Sun, 04 May 2025 20:27:53 +0200
Paul Cacheux via B4 Relay <devnull+paulcacheux.gmail.com@...nel.org> wrote:
> From: Paul Cacheux <paulcacheux@...il.com>
>
> The shared trace_probe_log variable can be accessed and modified
> by multiple processes using tracefs at the same time, this new
> mutex will guarantee it's always in a coherent state.
>
> There is no guarantee that multiple errors happening at the same
> time will each have the correct error message, but at least this
> won't crash.
>
> Fixes: ab105a4fb894 ("tracing: Use tracing error_log with probe events")
> Signed-off-by: Paul Cacheux <paulcacheux@...il.com>
> ---
> kernel/trace/trace_probe.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
Acked-by: Steven Rostedt (Google) <rostedt@...dmis.org>
-- Steve
Powered by blists - more mailing lists