]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390: add automatic detection of the spectre defense
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 27 Apr 2018 05:36:58 +0000 (07:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Apr 2018 05:50:04 +0000 (07:50 +0200)
commit768da41f91799d8237aa07c8951e434b0b65ccd3
tree8a0a33e15d1976aefb2bf7780530e72ec2c9fd33
parent5298e6f9ed6ee427ccd5b53afee67a84ed216dc8
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