]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390: add sysfs attributes for spectre
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 27 Apr 2018 05:37:00 +0000 (07:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Apr 2018 05:50:04 +0000 (07:50 +0200)
commit6aa300a00e7e6dfdbd4e914e7bbe4864d30a76b5
tree1db3e990b53af6d09bfe62cb32e92f784a72654c
parent6fbb47b1f94ab8b7b0ed0ce3d2e709f45d422432
s390: add sysfs attributes for spectre

[ Upstream commit d424986f1d6b16079b3231db0314923f4f8deed1 ]

Set CONFIG_GENERIC_CPU_VULNERABILITIES and provide the two functions
cpu_show_spectre_v1 and cpu_show_spectre_v2 to report the spectre
mitigations.

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