[4/4] x86/msr: Do not allow writes to MSR_IA32_ENERGY_PERF_BIAS
diff mbox series

Message ID 20201015144603.27933-5-bp@alien8.de
State New, archived
Headers show
Series
  • x86: Remove direct use of MSR_IA32_ENERGY_PERF_BIAS
Related show

Commit Message

Borislav Petkov Oct. 15, 2020, 2:46 p.m. UTC
From: Borislav Petkov <bp@suse.de>

Now that all in-kernel-tree users are converted to using the sysfs file,
remove the MSR from the "allowlist".

Signed-off-by: Borislav Petkov <bp@suse.de>
---
 arch/x86/kernel/msr.c | 3 ---
 1 file changed, 3 deletions(-)

Patch
diff mbox series

diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c
index c0d409810658..b1147862730c 100644
--- a/arch/x86/kernel/msr.c
+++ b/arch/x86/kernel/msr.c
@@ -99,9 +99,6 @@  static int filter_write(u32 reg)
 	if (!__ratelimit(&fw_rs))
 		return 0;
 
-	if (reg == MSR_IA32_ENERGY_PERF_BIAS)
-		return 0;
-
 	pr_err("Write to unrecognized MSR 0x%x by %s (pid: %d). Please report to x86@kernel.org.\n",
 	       reg, current->comm, current->pid);