WSL2-Linux-Kernel/arch/csky/kernel
Guo Ren ba810df878 csky: patch_text: Fixup last cpu should be master
commit 8c4d16471e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-09 10:23:26 +02:00
..
probes csky: patch_text: Fixup last cpu should be master 2022-06-09 10:23:26 +02:00
vdso
Makefile
asm-offsets.c
atomic.S
cpu-probe.c
entry.S
ftrace.c
head.S
irq.c
module.c
perf_callchain.c uaccess: fix type mismatch warnings from access_ok() 2022-04-08 14:24:01 +02:00
perf_event.c
perf_regs.c
power.c
process.c
ptrace.c
setup.c
signal.c uaccess: fix type mismatch warnings from access_ok() 2022-04-08 14:24:01 +02:00
smp.c
stacktrace.c
syscall.c
syscall_table.c
time.c
traps.c
vdso.c
vmlinux.lds.S