android_kernel_xiaomi_sm8350/arch
John David Anglin abb1f310e7 parisc: Fix patch code locking and flushing
[ Upstream commit a9fe7fa7d874a536e0540469f314772c054a0323 ]

This change fixes the following:

1) The flags variable is not initialized. Always use raw_spin_lock_irqsave
and raw_spin_unlock_irqrestore to serialize patching.

2) flush_kernel_vmap_range is primarily intended for DMA flushes. Since
__patch_text_multiple is often called with interrupts disabled, it is
better to directly call flush_kernel_dcache_range_asm and
flush_kernel_icache_range_asm. This avoids an extra call.

3) The final call to flush_icache_range is unnecessary.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-15 14:18:36 +02:00
..
alpha
arc
arm ARM: 9187/1: JIVE: fix return value of __setup handler 2022-04-15 14:18:31 +02:00
arm64 bpf, arm64: Feed byte-offset into bpf line info 2022-04-15 14:18:14 +02:00
c6x
csky
h8300
hexagon
ia64 ia64: ensure proper NUMA distance and possible map initialization 2022-03-08 19:07:48 +01:00
m68k
microblaze uaccess: fix nios2 and microblaze get_user_8() 2022-04-15 14:18:08 +02:00
mips MIPS: fix fortify panic when copying asm exception handlers 2022-04-15 14:18:34 +02:00
nds32 nds32: fix access_ok() checks in get/put_user 2022-03-28 08:46:48 +02:00
nios2 uaccess: fix nios2 and microblaze get_user_8() 2022-04-15 14:18:08 +02:00
openrisc
parisc parisc: Fix patch code locking and flushing 2022-04-15 14:18:36 +02:00
powerpc powerpc: Set crashkernel offset to mid of RMA region 2022-04-15 14:18:32 +02:00
riscv riscv module: remove (NOLOAD) 2022-04-15 14:18:31 +02:00
s390 s390/hypfs: include z/VM guests with access control group set 2022-02-01 17:24:33 +01:00
sh
sparc
um um: Fix uml_mconsole stop/go 2022-04-15 14:18:31 +02:00
unicore32
x86 xen: delay xen_hvm_init_time_ops() if kdump is boot on vcpu>=32 2022-04-15 14:18:35 +02:00
xtensa xtensa: fix DTC warning unit_address_format 2022-04-15 14:18:34 +02:00
.gitignore
Kconfig