diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2018-11-07 11:43:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-23 08:20:38 +0100 |
commit | eed96a3ce0a3b9de900f4cfb8f3519c429ba8b28 (patch) | |
tree | 9cd6b3068e8f6475761d015750673fcb00282be0 /arch | |
parent | 901e325f772f5e4cf9afc314f4bf70b8c9a97594 (diff) | |
download | linux-stable-eed96a3ce0a3b9de900f4cfb8f3519c429ba8b28.tar.gz linux-stable-eed96a3ce0a3b9de900f4cfb8f3519c429ba8b28.tar.bz2 linux-stable-eed96a3ce0a3b9de900f4cfb8f3519c429ba8b28.zip |
ARM: spectre: add Kconfig symbol for CPUs vulnerable to Spectre
Commit c58d237d0852a57fde9bc2c310972e8f4e3d155d upstream.
Add a Kconfig symbol for CPUs which are vulnerable to the Spectre
attacks.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Boot-tested-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: David A. Long <dave.long@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mm/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index c1799dd1d0d9..d37af5e63411 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -396,6 +396,7 @@ config CPU_V7 select CPU_CP15_MPU if !MMU select CPU_HAS_ASID if MMU select CPU_PABRT_V7 + select CPU_SPECTRE if MMU select CPU_TLB_V7 if MMU # ARMv7M @@ -800,6 +801,9 @@ config CPU_BPREDICT_DISABLE help Say Y here to disable branch prediction. If unsure, say N. +config CPU_SPECTRE + bool + config TLS_REG_EMUL bool select NEED_KUSER_HELPERS |