Re: [PATCH v2] powerpc/kprobes: Fix kprobe Oops happens in booke

2021-08-11 Thread Pu Lehui
On 2021/8/11 13:31, Christophe Leroy wrote: Le 11/08/2021 à 04:53, Pu Lehui a écrit : Ping, serious problem here. All booke ppc will trigger Oops when perform kprobes related operations. As far as I can see it is in the fixes branch: https://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH v2] powerpc/kprobes: Fix kprobe Oops happens in booke

2021-08-10 Thread Pu Lehui
Ping, serious problem here. All booke ppc will trigger Oops when perform kprobes related operations. On 2021/8/9 10:36, Pu Lehui wrote: When using kprobe on powerpc booke series processor, Oops happens as show bellow: / # echo "p:myprobe do_nanosleep" > /sys/kernel/debug/tracing/

[PATCH v2] powerpc/kprobes: Fix kprobe Oops happens in booke

2021-08-08 Thread Pu Lehui
mode judgment. Fixes: 21f8b2fa3ca5 ("powerpc/kprobes: Ignore traps that happened in real mode") Signed-off-by: Pu Lehui --- v1->v2: - use IS_ENABLED(CONFIG_BOOKE) as suggested by Michael Ellerman and Christophe Leroy - update Oops log to make problem clear arch/powerpc/kernel/k

Re: [PATCH] powerpc/kprobes: Fix kprobe Oops happens in booke

2021-08-06 Thread Pu Lehui
On 2021/8/5 17:51, Christophe Leroy wrote: Le 04/08/2021 à 16:37, Pu Lehui a écrit : When using kprobe on powerpc booke series processor, Oops happens as show bellow: [   35.861352] Oops: Exception in kernel mode, sig: 5 [#1] [   35.861676] BE PAGE_SIZE=4K SMP NR_CPUS=24 QEMU e500

Re: [PATCH] powerpc/kprobes: Fix kprobe Oops happens in booke

2021-08-05 Thread Pu Lehui
On 2021/8/5 14:13, Michael Ellerman wrote: Pu Lehui writes: When using kprobe on powerpc booke series processor, Oops happens as show bellow: [ 35.861352] Oops: Exception in kernel mode, sig: 5 [#1] [ 35.861676] BE PAGE_SIZE=4K SMP NR_CPUS=24 QEMU e500 [ 35.861905] Modules linked

[PATCH] powerpc/kprobes: Fix kprobe Oops happens in booke

2021-08-04 Thread Pu Lehui
space, but not for real mode judgment. Fixes: 21f8b2fa3ca5 ("powerpc/kprobes: Ignore traps that happened in real mode") Signed-off-by: Pu Lehui --- arch/powerpc/include/asm/ptrace.h | 6 ++ arch/powerpc/kernel/kprobes.c | 5 + 2 files changed, 7 insertions(+), 4 deletions(-) d

[PATCH -next] powerpc/xmon: Make symbol 'spu_inst_dump' static

2021-04-09 Thread Pu Lehui
Fix sparse warning: arch/powerpc/xmon/xmon.c:4216:1: warning: symbol 'spu_inst_dump' was not declared. Should it be static? This symbol is not used outside of xmon.c, so make it static. Signed-off-by: Pu Lehui --- arch/powerpc/xmon/xmon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH -next] powerpc/fadump: make symbol 'rtas_fadump_set_regval' static

2021-04-08 Thread Pu Lehui
Fix sparse warnings: arch/powerpc/platforms/pseries/rtas-fadump.c:250:6: warning: symbol 'rtas_fadump_set_regval' was not declared. Should it be static? Signed-off-by: Pu Lehui --- arch/powerpc/platforms/pseries/rtas-fadump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git