1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
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 csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
decode-insn.h csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
ftrace.c ftrace: disable preemption when recursion locked 2021-10-27 11:21:49 -04:00
kprobes.c csky: patch_text: Fixup last cpu should be master 2022-04-07 15:35:57 +08:00
kprobes_trampoline.S kprobes: treewide: Make it harder to refer kretprobe_trampoline directly 2021-09-30 21:24:06 -04:00
Makefile csky: Add uprobes support 2020-04-03 11:37:51 +08:00
simulate-insn.c csky: kprobe: Fixup code in simulate without 'long' 2021-02-27 16:34:50 +08:00
simulate-insn.h csky: Add kprobes supported 2020-04-03 11:14:17 +08:00
uprobes.c csky: fix typos in comments 2022-04-06 22:37:58 +08:00