Skip to contentSkip to conversation

x86/msr: Downgrade unrecognized MSR message

PATCH Applied Borislav Petkov 2 participants 2 messages Nov 18, 2020 – Nov 19, 2020

Subsystems (2)
lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw

PATCH 1/1 x86/msr: Downgrade unrecognized MSR message

From: Borislav Petkov <[email protected]>

It is a warning and not an error so use pr_warn().

---
 arch/x86/kernel/msr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/msr.c +2 -2
index b1147862730c..95e6b97b7d8b 100644
@@ -99,8 +99,8 @@ static int filter_write(u32 reg)
 	if (!__ratelimit(&fw_rs))
 		return 0;
 
-	pr_err("Write to unrecognized MSR 0x%x by %s (pid: %d). Please report to [email protected].\n",
-	       reg, current->comm, current->pid);
+	pr_warn("Write to unrecognized MSR 0x%x by %s (pid: %d). Please report to [email protected].\n",
+	        reg, current->comm, current->pid);
 
 	return 0;
 }
Signature · 1 line
2.21.0
#1 lore raw
The following commit has been merged into the x86/misc branch of tip:

The following commit has been merged into the x86/misc branch of tip:

Commit-ID:     b023fd5f741f34d2cd90258ccc3f245924d2eadd
Gitweb:        https://git.kernel.org/tip/b023fd5f741f34d2cd90258ccc3f245924d2eadd
Author:        Borislav Petkov <[email protected]>
AuthorDate:    Wed, 18 Nov 2020 13:34:07 +01:00
Committer:     Borislav Petkov <[email protected]>
CommitterDate: Thu, 19 Nov 2020 10:46:54 +01:00

x86/msr: Downgrade unrecognized MSR message

It is a warning and not an error so use pr_warn().

---
 arch/x86/kernel/msr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/msr.c +2 -2
index b114786..95e6b97 100644
@@ -99,8 +99,8 @@ static int filter_write(u32 reg)
 	if (!__ratelimit(&fw_rs))
 		return 0;
 
-	pr_err("Write to unrecognized MSR 0x%x by %s (pid: %d). Please report to [email protected].\n",
-	       reg, current->comm, current->pid);
+	pr_warn("Write to unrecognized MSR 0x%x by %s (pid: %d). Please report to [email protected].\n",
+	        reg, current->comm, current->pid);
 
 	return 0;
 }