linux-stable/arch/arm/kernel
Ard Biesheuvel a7e49f1a81 ARM: 9197/1: spectre-bhb: fix loop8 sequence for Thumb2
[ Upstream commit 3cfb301997 ]

In Thumb2, 'b . + 4' produces a branch instruction that uses a narrow
encoding, and so it does not jump to the following instruction as
expected. So use W(b) instead.

Fixes: 6c7cb60bff ("ARM: fix Thumb2 regression with Spectre BHB")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-25 08:41:20 +02:00
..
.gitignore
arch_timer.c
armksyms.c ARM: implement memset32 & memset64 2017-09-08 18:26:48 -07:00
asm-offsets.c
atags.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
atags_compat.c
atags_parse.c ARM: fix rd_size declaration 2017-07-10 16:32:34 -07:00
atags_proc.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bios32.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bugs.c ARM: clean up per-processor check_bugs method call 2019-02-20 10:20:47 +01:00
cpuidle.c ARM: Convert to using %pOF instead of full_name 2017-08-16 22:25:30 +02:00
crash_dump.c
debug.S ARM: 8704/1: semihosting: use proper instruction on v7m processors 2017-10-12 11:28:29 +01:00
devtree.c ARM: Convert to using %pOF instead of full_name 2017-08-16 22:25:30 +02:00
dma-isa.c
dma.c
early_printk.c
efi.c
elf.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
entry-armv.S ARM: 9197/1: spectre-bhb: fix loop8 sequence for Thumb2 2022-05-25 08:41:20 +02:00
entry-common.S ARM: Spectre-BHB workaround 2022-03-11 10:13:30 +01:00
entry-ftrace.S
entry-header.S ARM: uaccess: consolidate uaccess asm to asm/uaccess-asm.h 2020-06-03 08:17:58 +02:00
entry-v7m.S ARM: 8830/1: NOMMU: Toggle only bits in EXC_RETURN we are really care of 2019-04-05 22:31:37 +02:00
fiq.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fiqasm.S
ftrace.c ARM: 9079/1: ftrace: Add MODULE_PLTS support 2021-10-06 15:05:10 +02:00
head-common.S ARM: 8702/1: head-common.S: Clear lr before jumping to start_kernel() 2020-08-07 09:38:42 +02:00
head-nommu.S
head.S ARM: p2v: fix handling of LPAE translation in BE mode 2020-12-29 13:46:51 +01:00
hibernate.c
hw_breakpoint.c ARM: 9064/1: hw_breakpoint: Do not directly check the event's overflow_handler hook 2021-05-22 10:57:38 +02:00
hyp-stub.S ARM: 8955/1: virt: Relax arch timer version check during early boot 2020-02-05 14:18:23 +00:00
insn.c ARM: 9078/1: Add warn suppress parameter to arm_gen_branch_link() 2021-10-06 15:05:10 +02:00
io.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
irq.c ARM: 8824/1: fix a migrating irq bug when hotplug cpu 2019-03-23 14:35:14 +01:00
isa.c
iwmmxt.S ARM: align .data section 2017-08-14 16:22:55 +01:00
jump_label.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
kgdb.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
machine_kexec.c ARM: avoid Cortex-A9 livelock on tight dmb loops 2019-04-05 22:31:37 +02:00
Makefile ARM: report Spectre v2 status through sysfs 2022-03-11 10:13:30 +01:00
module-plts.c ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without DYNAMIC_FTRACE 2021-10-06 15:05:10 +02:00
module.c
module.lds License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
opcodes.c
paravirt.c
patch.c ARM: 8839/1: kprobe: make patch_lock a raw_spinlock_t 2019-04-20 09:15:07 +02:00
perf_callchain.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
perf_event_v6.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
perf_event_v7.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
perf_event_xscale.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
perf_regs.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pj4-cp0.c
process.c
psci_smp.c
ptrace.c ARM: 8977/1: ptrace: Fix mask for thumb breakpoint hook 2020-06-20 10:24:59 +02:00
reboot.c
reboot.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
relocate_kernel.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
return_address.c ARM: 8918/2: only build return_address() if needed 2021-09-22 11:45:15 +02:00
setup.c ARM: 9081/1: fix gcc-10 thumb2-kernel regression 2021-06-30 08:48:56 -04:00
signal.c ARM: ensure the signal page contains defined contents 2021-02-23 14:00:32 +01:00
sigreturn_codes.S
sleep.S ARM: 8847/1: pm: fix HYP/SVC mode mismatch when MCPM is used 2020-01-27 14:46:22 +01:00
smccc-call.S
smp.c ARM: prevent tracing IPI_CPU_BACKTRACE 2019-06-15 11:54:51 +02:00
smp_scu.c
smp_tlb.c
smp_twd.c
spectre.c ARM: fix build error when BPF_SYSCALL is disabled 2022-03-11 10:13:31 +01:00
stacktrace.c ARM: 9191/1: arm/stacktrace, kasan: Silence KASAN warnings in unwind_frame() 2022-05-25 08:41:18 +02:00
suspend.c ARM: 9066/1: ftrace: pause/unpause function graph tracer in cpu_suspend() 2021-05-22 10:57:42 +02:00
swp_emulate.c
sys_arm.c
sys_oabi-compat.c ARM: 8792/1: oabi-compat: copy oabi events using __copy_to_user() 2019-02-20 10:20:45 +01:00
tcm.c
thumbee.c
time.c
topology.c ARM: Convert to using %pOF instead of full_name 2017-08-16 22:25:30 +02:00
traps.c ARM: Spectre-BHB workaround 2022-03-11 10:13:30 +01:00
unwind.c ARM: 8840/1: use a raw_spinlock_t in unwind 2019-04-05 22:31:30 +02:00
v7m.c
vdso.c ARM: 8957/1: VDSO: Match ARMv8 timer in cntvct_functional() 2020-03-20 10:54:26 +01:00
vmlinux-xip.lds.S ARM: Do not use NOCROSSREFS directive with ld.lld 2022-03-11 10:13:31 +01:00
vmlinux.lds.S ARM: Do not use NOCROSSREFS directive with ld.lld 2022-03-11 10:13:31 +01:00
xscale-cp0.c