File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,8 @@ static const char *spectre_v2_strings[] = {
129
129
#undef pr_fmt
130
130
#define pr_fmt (fmt ) "Spectre V2 : " fmt
131
131
132
- static enum spectre_v2_mitigation spectre_v2_enabled = SPECTRE_V2_NONE ;
132
+ static enum spectre_v2_mitigation spectre_v2_enabled __ro_after_init =
133
+ SPECTRE_V2_NONE ;
133
134
134
135
void x86_spec_ctrl_set (u64 val )
135
136
{
@@ -407,7 +408,7 @@ static void __init spectre_v2_select_mitigation(void)
407
408
#undef pr_fmt
408
409
#define pr_fmt (fmt ) "Speculative Store Bypass: " fmt
409
410
410
- static enum ssb_mitigation ssb_mode = SPEC_STORE_BYPASS_NONE ;
411
+ static enum ssb_mitigation ssb_mode __ro_after_init = SPEC_STORE_BYPASS_NONE ;
411
412
412
413
/* The kernel command line selection */
413
414
enum ssb_mitigation_cmd {
You can’t perform that action at this time.
0 commit comments