Re: [PATCH v1 0/4] Fix ftrace and kprobes issues for LoongArch

From: Huacai Chen

Date: Wed May 20 2026 - 03:58:41 EST


Hi, Tiezhu,

On Fri, May 15, 2026 at 12:29 PM Huacai Chen <chenhuacai@xxxxxxxxxx> wrote:
>
> On Fri, May 15, 2026 at 10:52 AM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:
> >
> > 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.
> I think Patch#3 is OK, but you need to remove the introduction about atomicity.
Will you resend V2? Or just ignore Patch#3?

Huacai
>
> Huacai
>
> >
> > 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
> >
> >