linux-stable/arch/csky
Guo Ren 5b58a1b0c8 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:26:25 +02:00
..
abiv1 csky: Fix function name in csky_alignment() and die() 2022-01-08 09:43:03 -06:00
abiv2 csky: Fixup compile error 2021-02-27 22:04:14 +08:00
boot treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
configs csky: Minimize defconfig to support buildroot config.fragment 2020-02-21 15:43:25 +08:00
include uaccess: fix integer overflow on access_ok() 2022-03-28 10:03:21 +02:00
kernel csky: patch_text: Fixup last cpu should be master 2022-06-09 10:26:25 +02:00
lib csky: use generic strncpy/strnlen from_user 2021-07-23 14:40:01 +02:00
mm exit: Add and use make_task_dead. 2021-12-13 12:04:45 -06:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig futex: Remove futex_cmpxchg detection 2021-11-25 00:02:28 +01:00
Kconfig.debug treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Kconfig.platforms csky/Kconfig: Add Kconfig.platforms to support some drivers 2020-02-21 15:43:24 +08:00
Makefile kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00