]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - arch/s390/Kconfig
s390: add automatic detection of the spectre defense
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 23 Mar 2018 12:04:49 +0000 (13:04 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 28 Mar 2018 06:38:24 +0000 (08:38 +0200)
commit6e179d64126b909f0b288fa63cdbf07c531e9b1d
treed3b27e05dca18c669c42ba1b7833179c1b83a273
parentb2e2f43a01bace1a25bdbae04c9f9846882b727a
s390: add automatic detection of the spectre defense

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>
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