ARM: 9199/1: spectre-bhb: use local DSB and elide ISB in loop8 sequence
authorArd Biesheuvel <ardb@kernel.org>
Wed, 20 Apr 2022 08:57:45 +0000 (09:57 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 20 May 2022 11:33:47 +0000 (12:33 +0100)
commit892c608a7d7380b9a7c8f0d6aab99b763fd6fd3f
tree2414479effffccb130956bc04d7505d42625d0e6
parentc4f486f1e7b34b27ec578494a236061b337d50ae
ARM: 9199/1: spectre-bhb: use local DSB and elide ISB in loop8 sequence

The loop8 mitigation for Spectre-BHB only requires a CPU local DSB
rather than a systemwide one, which is much more costly. And by the same
reasoning as why it is justified to omit the ISB after BPIALL, we can
also elide the ISB and rely on the exception return for the context
synchronization.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/entry-armv.S
arch/arm/kernel/entry-common.S