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

Wentao Guan <[email protected]>
Newsgroups dev.linux.lists.loongarch,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.