linux/arch/csky/kernel/probes
Guo Ren 8c4d16471e csky: patch_text: Fixup last cpu should be master
These patch_text implementations are using stop_machine_cpuslocked
infrastructure with atomic cpu_count. The original idea: When the
master CPU patch_text, the others should wait for it. But current
implementation is using the first CPU as master, which couldn't
guarantee the remaining CPUs are waiting. This patch changes the
last CPU as the master to solve the potential risk.

Fixes: 33e53ae1ce ("csky: Add kprobes supported")
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: <stable@vger.kernel.org>
2022-04-07 15:35:57 +08:00
..
decode-insn.c
decode-insn.h
ftrace.c ftrace: disable preemption when recursion locked 2021-10-27 11:21:49 -04:00
kprobes_trampoline.S kprobes: treewide: Make it harder to refer kretprobe_trampoline directly 2021-09-30 21:24:06 -04:00
kprobes.c csky: patch_text: Fixup last cpu should be master 2022-04-07 15:35:57 +08:00
Makefile
simulate-insn.c csky: kprobe: Fixup code in simulate without 'long' 2021-02-27 16:34:50 +08:00
simulate-insn.h
uprobes.c csky: fix typos in comments 2022-04-06 22:37:58 +08:00