tmp_suning_uos_patched/arch/arm64
Guo Ren 8bb4168291 arm64: patch_text: Fixup last cpu should be master
commit 31a099dbd91e69fcab55eef4be15ed7a8c984918 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: ae16480785 ("arm64: introduce interfaces to hotpatch kernel and module code")
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220407073323.743224-2-guoren@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-13 21:01:08 +02:00
..
boot arm64: dts: rockchip: Fix SDIO regulator supply properties on rk3399-firefly 2022-04-08 14:40:09 +02:00
configs arm64: defconfig: build imx-sdma as a module 2022-04-08 14:40:34 +02:00
crypto crypto: poly1305 - fix poly1305_core_setkey() declaration 2021-05-14 09:50:13 +02:00
include arm64: Add part number for Arm Cortex-A78AE 2022-04-13 21:01:07 +02:00
kernel arm64: patch_text: Fixup last cpu should be master 2022-04-13 21:01:08 +02:00
kvm arm64: kvm: Fix copy-and-paste error in bhb templates for v5.10 stable 2022-03-19 13:44:46 +01:00
lib arm64: clear_page() shouldn't use DC ZVA when DCZID_EL0.DZP == 1 2022-01-27 10:53:54 +01:00
mm arm64: Do not defer reserve_crashkernel() for platforms with no DMA memory zones 2022-04-08 14:40:45 +02:00
net bpf, arm64: Feed byte-offset into bpf line info 2022-04-08 14:40:18 +02:00
xen
Kbuild
Kconfig arm64: Mitigate spectre style branch history side channels 2022-03-11 12:11:53 +01:00
Kconfig.debug
Kconfig.platforms arm64: berlin: Select DW_APB_TIMER_OF 2020-10-26 10:45:03 +01:00
Makefile arm64: link with -z norelro for LLD or aarch64-elf 2021-01-12 20:18:24 +01:00