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

2021-04-11 Thread Palmer Dabbelt
On Mon, 29 Mar 2021 11:14:40 PDT (-0700), jszha...@mail.ustc.edu.cn wrote: From: Jisheng Zhang 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

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

2021-03-30 Thread Steven Rostedt
On Tue, 30 Mar 2021 02:14:40 +0800 Jisheng Zhang wrote: > From: Jisheng Zhang > > 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 >

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

2021-03-29 Thread Jisheng Zhang
From: Jisheng Zhang 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: