[PATCH] riscv: kprobes/ftrace: Add recursion protection to the ftrace callback

Steven Rostedt rostedt at goodmis.org
Tue Mar 30 20:39:22 BST 2021


On Tue, 30 Mar 2021 02:14:40 +0800
Jisheng Zhang <jszhang3 at mail.ustc.edu.cn> wrote:

> From: Jisheng Zhang <jszhang at kernel.org>
> 
> Currently, the riscv's kprobes(powerred by ftrace) handler is
> preemptible. Futher check indicates we miss something similar as the
> commit c536aa1c5b17 ("kprobes/ftrace: Add recursion protection to the
> ftrace callback"), so do similar modifications as the commit does.
> 
> Fixes: 829adda597fe ("riscv: Add KPROBES_ON_FTRACE supported")
> Signed-off-by: Jisheng Zhang <jszhang at kernel.org>

Looks fine to me.

Reviewed-by: Steven Rostedt (VMware) <rostedt at goodmis.org>

-- Steve



More information about the linux-riscv mailing list