Re: [PATCH v1 0/4] Fix ftrace and kprobes issues for LoongArch
From: Tiezhu Yang
Date: Thu May 14 2026 - 22:52:29 EST
On 2026/5/12 下午4:20, Tiezhu Yang wrote:
This series addresses ftrace and kprobes issues observed under heavy
tracing loads.
Tiezhu Yang (4):
LoongArch: ftrace: Fix stale per-CPU kprobe state after task migration
LoongArch: kprobes: Use larch_insn_text_copy() to patch instructions
LoongArch: kprobes: Fix single-stepping instruction slot preparation
LoongArch: kprobes: Fix handling of fatal unrecoverable recursions
Hi Lisa and Rui,
You are right, please ignore the patch #3.
Hi Huacai,
Please disregard the patch #1 and focus on the patch #2 and #4.
After thinking it through, it is better to avoid calling functions that
might sleep in the probe handler. We have modified the test module with
a proper way, there is no problem thereafter.
The right way is to prevent the problem at the root instead of trying to
fix it after the fact.
Thanks,
Tiezhu