aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/cpu/bugs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
index e3afb610f2ad..f8d9be0e86b1 100644
--- a/arch/x86/kernel/cpu/bugs.c
+++ b/arch/x86/kernel/cpu/bugs.c
@@ -129,7 +129,8 @@ static const char *spectre_v2_strings[] = {
129#undef pr_fmt 129#undef pr_fmt
130#define pr_fmt(fmt) "Spectre V2 : " fmt 130#define pr_fmt(fmt) "Spectre V2 : " fmt
131 131
132static enum spectre_v2_mitigation spectre_v2_enabled = SPECTRE_V2_NONE; 132static enum spectre_v2_mitigation spectre_v2_enabled __ro_after_init =
133 SPECTRE_V2_NONE;
133 134
134void x86_spec_ctrl_set(u64 val) 135void x86_spec_ctrl_set(u64 val)
135{ 136{
@@ -407,7 +408,7 @@ retpoline_auto:
407#undef pr_fmt 408#undef pr_fmt
408#define pr_fmt(fmt) "Speculative Store Bypass: " fmt 409#define pr_fmt(fmt) "Speculative Store Bypass: " fmt
409 410
410static enum ssb_mitigation ssb_mode = SPEC_STORE_BYPASS_NONE; 411static enum ssb_mitigation ssb_mode __ro_after_init = SPEC_STORE_BYPASS_NONE;
411 412
412/* The kernel command line selection */ 413/* The kernel command line selection */
413enum ssb_mitigation_cmd { 414enum ssb_mitigation_cmd {