[PATCH 4.9.y] arm: kprobes: Allow to handle reentered kprobe on single-stepping

2021-03-03 Thread ShaoBo Huang
From: Masami Hiramatsu commit f3fbd7ec62dec1528fb8044034e2885f2b257941 upstream This is arm port of commit 6a5022a56ac3 ("kprobes/x86: Allow to handle reentered kprobe on single-stepping") Since the FIQ handlers can interrupt in the single stepping (or preparing the single stepping, do_debug

Re: [PATCH 4.4.y] arm: kprobes: Allow to handle reentered kprobe on single-stepping

2021-03-01 Thread Shaobo Huang
ned-off-by: huangshaobo > > --- > > arch/arm/probes/kprobes/core.c | 6 ++ > > 1 file changed, 6 insertions(+) > > What about the 4.9.y tree as well? > > thanks, > > greg k-h Yes, I tested on the 4.4.y tree. From the code analysis, the same problem exists in the 2.6.25 to 4.11 trees, and of course the 4.9.y tree is also included. thanks, ShaoBo Huang

Re: [PATCH 4.4.y] arm: kprobes: Allow to handle reentered kprobe on single-stepping

2021-02-27 Thread Shaobo Huang
> > From: Masami Hiramatsu > > commit f3fbd7ec62dec1528fb8044034e2885f2b257941 upstream > > This is arm port of commit 6a5022a56ac3 ("kprobes/x86: Allow to > handle reentered kprobe on single-stepping") > > Since the FIQ handlers can interrupt in the single stepping > (or preparing the single

[PATCH] ARM: fix panic when kasan and kprobe are enabled

2021-02-09 Thread Shaobo Huang
From: huangshaobo arm32 uses software to simulate the instruction replaced by kprobe. some instructions may be simulated by constructing assembly functions. therefore, before executing instruction simulation, it is necessary to construct assembly function execution environment in C language