mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 00:48:50 +00:00
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
This commit is contained in:
parent
fe0a578862
commit
18741a5251
1 changed files with 0 additions and 3 deletions
|
@ -99,9 +99,6 @@ static int filter_write(u32 reg)
|
||||||
if (!__ratelimit(&fw_rs))
|
if (!__ratelimit(&fw_rs))
|
||||||
return 0;
|
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",
|
pr_err("Write to unrecognized MSR 0x%x by %s (pid: %d). Please report to x86@kernel.org.\n",
|
||||||
reg, current->comm, current->pid);
|
reg, current->comm, current->pid);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue