diff options
| author | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2025-07-29 08:47:03 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-20 18:41:42 +0200 |
| commit | 1540f5d8e871c125fc33d0390a72b0f942711df5 (patch) | |
| tree | 5f8c974fe4b0b1f2770e6fdfa171ae421a24bc0b /tools/perf/scripts/python/stackcollapse.py | |
| parent | d4fc21f1569dffe0590ed942e173af9a4c9ed079 (diff) | |
tracing: fprobe: Fix infinite recursion using preempt_*_notrace()
commit a3e892ab0fc287389176eabdcd74234508f6e52d upstream.
Since preempt_count_add/del() are tracable functions, it is not allowed
to use preempt_disable/enable() in ftrace handlers. Without this fix,
probing on `preempt_count_add%return` will cause an infinite recursion
of fprobes.
To fix this problem, use preempt_disable/enable_notrace() in
fprobe_return().
Link: https://lore.kernel.org/all/175374642359.1471729.1054175011228386560.stgit@mhiramat.tok.corp.google.com/
Fixes: 4346ba160409 ("fprobe: Rewrite fprobe on function-graph tracer")
Cc: stable@vger.kernel.org
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
