Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2019-08-16 11:26:27 +0200
committerBorislav Petkov <bp@suse.de>2019-08-16 11:26:27 +0200
commit118eeef9cc5531a2da7f529895a5b1341d5a7903 (patch)
tree9487b5bac425b3295533644621374bc68c6b3684
parentbaf98c148433daa620eae278486638fe945f4637 (diff)
cpu/speculation: Warn on unsupported mitigations= parameter
(bsc#1114279). suse-commit: a78bef09cc0bcbdb5223fae41210629bb5ed348b
-rw-r--r--kernel/cpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index b2b15fb04fb3..c9c308fe9c0f 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -2101,6 +2101,9 @@ static int __init mitigations_parse_cmdline(char *arg)
cpu_mitigations = CPU_MITIGATIONS_AUTO;
else if (!strcmp(arg, "auto,nosmt"))
cpu_mitigations = CPU_MITIGATIONS_AUTO_NOSMT;
+ else
+ pr_crit("Unsupported mitigations=%s, system may still be vulnerable\n",
+ arg);
return 0;
}