diff options
author | Borislav Petkov <bp@suse.de> | 2020-10-15 16:00:31 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-11-16 19:44:04 +0300 |
commit | 18741a5251d018094536a2dffe284d269ebb07fe (patch) | |
tree | 1692d6ce763c0e8ce8c29a0ccd36ffe951095ddc /arch/x86/kernel/msr.c | |
parent | fe0a5788624c8b8f113a35bbe4636e37f9321241 (diff) | |
download | linux-18741a5251d018094536a2dffe284d269ebb07fe.tar.xz |
x86/msr: Do not allow writes to MSR_IA32_ENERGY_PERF_BIAS
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>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lkml.kernel.org/r/20201029190259.3476-5-bp@alien8.de
Diffstat (limited to 'arch/x86/kernel/msr.c')
-rw-r--r-- | arch/x86/kernel/msr.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); |