Re: [PATCH] tracing: fgraph: Protect return handler from recursion loop
From: Steven Rostedt
Date: Mon Sep 22 2025 - 10:42:44 EST
On Mon, 22 Sep 2025 15:38:13 +0200
Jiri Olsa <olsajiri@xxxxxxxxx> wrote:
> > I found ftrace_test_recursion_trylock() allows one nest level, can you
> > make sure it is OK?
>
> hum, I recall being surprised by that already in the past,
> I thought we fixed that somehow, will check later today
It still does allow one level of recursion, because there's still
locations that can trace in interrupt context before the preempt count
is updated to the new context.
I looked at fixing these, but IIRC, there's several locations in
assembly that do this and it started getting messy. I guess I can try
to fix this again.
-- Steve