]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61b618c3ebd5b4a4d47e1f926c8d8af57e1b259e
tree2414479effffccb130956bc04d7505d42625d0e6
parent402d4a35a9fa2eea6b1dc95084909b12d57d0ff6
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