]> git.hungrycats.org Git - linux/commit
s390: add automatic detection of the spectre defense
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 23 May 2018 16:22:18 +0000 (18:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:46:06 +0000 (16:46 +0200)
commit78ddb798862fca11ef01e304e8d0e0b4a496c20a
tree27774fbe8b3ad77626469c2fb637457d7b978e0e
parent6102c5edcb8496c0dca53bd2674a592153fa2e4c
s390: add automatic detection of the spectre defense

[ Upstream commit 6e179d64126b909f0b288fa63cdbf07c531e9b1d ]

Automatically decide between nobp vs. expolines if the spectre_v2=auto
kernel parameter is specified or CONFIG_EXPOLINE_AUTO=y is set.

The decision made at boot time due to CONFIG_EXPOLINE_AUTO=y being set
can be overruled with the nobp, nospec and spectre_v2 kernel parameters.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/Kconfig
arch/s390/Makefile
arch/s390/include/asm/nospec-branch.h
arch/s390/kernel/alternative.c
arch/s390/kernel/module.c
arch/s390/kernel/nospec-branch.c