Re: [PATCH] LoongArch: kprobes: Avoid preempt count underflow without probe

From: Wentao Guan

Date: Sun Aug 23 2026 - 23:16:38 EST


Hello,

> @@ -275,6 +275,9 @@ bool kprobe_singlestep_handler(struct pt_regs *regs)
> struct kprobe_ctlblk *kcb = get_kprobe_ctlblk();
> unsigned long addr = instruction_pointer(regs);
>
> + if (!cur)
> + return false;
> +
This patch looks good to me.

BRs
Wentao Guan