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

From: Steven Rostedt
Date: Tue Mar 30 2021 - 15:40:21 EST


On Tue, 30 Mar 2021 02:14:40 +0800
Jisheng Zhang <jszhang3@xxxxxxxxxxxxxxxx> wrote:

> From: Jisheng Zhang <jszhang@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>

Looks fine to me.

Reviewed-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>

-- Steve