linux-stable/arch/parisc
John David Anglin e115f5a443 parisc: Fix patch code locking and flushing
[ Upstream commit a9fe7fa7d8 ]

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-13 19:27:27 +02:00
..
boot Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
configs parisc: Enable sata sil, audit and usb support on 64-bit defconfig 2021-11-30 21:49:32 +01:00
include parisc: Fix handling off probe non-access faults 2022-04-08 13:58:38 +02:00
kernel parisc: Fix patch code locking and flushing 2022-04-13 19:27:27 +02:00
lib parisc: Add ioread64_lo_hi() and iowrite64_lo_hi() 2022-02-07 16:33:31 +01:00
math-emu parisc: math-emu: Fix fall-through warnings 2021-09-01 22:18:18 +02:00
mm parisc: Fix handling off probe non-access faults 2022-04-08 13:58:38 +02:00
defpalo.conf
install.sh parisc: Fix "make install" on newer debian releases 2021-12-04 21:36:04 +01:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig parisc: Default to 16 CPUs on 32-bit kernel 2022-01-11 11:57:38 +01:00
Kconfig.debug tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig 2021-08-16 11:37:21 -04:00
Makefile parisc: Fix KBUILD_IMAGE for self-extracting kernel 2021-11-30 21:49:32 +01:00
nm