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>
Showing
- arch/s390/Kconfig 1 addition, 1 deletionarch/s390/Kconfig
- arch/s390/Makefile 1 addition, 1 deletionarch/s390/Makefile
- arch/s390/include/asm/nospec-branch.h 2 additions, 4 deletionsarch/s390/include/asm/nospec-branch.h
- arch/s390/kernel/alternative.c 1 addition, 0 deletionsarch/s390/kernel/alternative.c
- arch/s390/kernel/module.c 5 additions, 6 deletionsarch/s390/kernel/module.c
- arch/s390/kernel/nospec-branch.c 42 additions, 26 deletionsarch/s390/kernel/nospec-branch.c
Loading
Please register or sign in to comment