linux/arch/arm64
James Morse 531b5ce9dd UPSTREAM: arm64: Use the clearbhb instruction in mitigations
Future CPUs may implement a clearbhb instruction that is sufficient
to mitigate SpectreBHB. CPUs that implement this instruction, but
not CSV2.3 must be affected by Spectre-BHB.

Add support to use this instruction as the BHB mitigation on CPUs
that support it. The instruction is in the hint space, so it will
be treated by a NOP as older CPUs.

Bug: 215557547
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
(cherry picked from commit 228a26b912)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ie233d92acfaed7b44ac255472ddb06367660384d
2022-03-18 09:57:38 +01:00
..
boot This is the 5.10.104 stable release 2022-03-12 13:57:09 +01:00
configs ANDROID: GKI: Enable CONFIG_SERIAL_8250_RUNTIME_UARTS=0 2022-02-11 17:28:00 +00:00
crypto ANDROID: crypto: fips140 - perform load time integrity check 2021-06-11 07:49:58 +00:00
include UPSTREAM: arm64: Use the clearbhb instruction in mitigations 2022-03-18 09:57:38 +01:00
kernel UPSTREAM: arm64: Use the clearbhb instruction in mitigations 2022-03-18 09:57:38 +01:00
kvm UPSTREAM: arm64: Use the clearbhb instruction in mitigations 2022-03-18 09:57:38 +01:00
lib Merge branch 'android12-5.10' into android12-5.10-lts 2022-02-22 16:44:17 +01:00
mm Merge 56cf5326bd ("arm64: entry: Add macro for reading symbol addresses from the trampoline") into android12-5.10-lts 2022-03-16 15:01:36 +01:00
net This is the 5.10.80 stable release 2021-11-19 11:50:41 +01:00
xen
Kbuild
Kconfig UPSTREAM: arm64: Mitigate spectre style branch history side channels 2022-03-18 09:57:27 +01:00
Kconfig.debug
Kconfig.platforms FROMLIST: arm64: meson: remove MESON_IRQ_GPIO selection 2021-02-11 14:43:13 +00:00
Makefile ANDROID: Don't add image to all target with KBUILD_MIXED_TREE 2021-05-22 09:43:36 +00:00
Makefile.postlink ANDROID: fips140: preserve RELA sections without relying on the module loader 2021-10-29 13:32:14 -07:00