Commit c31feed8 authored by Chris Down's avatar Chris Down Committed by Borislav Petkov

x86/msr: Make source of unrecognised MSR writes unambiguous

In many cases, task_struct.comm isn't enough to distinguish the
offender, since for interpreted languages it's likely just going to be
"python3" or whatever. Add the pid to make it unambiguous.

 [ bp: Make the printk string a single line for easier grepping. ]
Signed-off-by: default avatarChris Down <chris@chrisdown.name>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/6f6fbd0ee6c99bc5e47910db700a6642159db01b.1598011595.git.chris@chrisdown.name
parent 1f35c9c0
......@@ -102,8 +102,8 @@ static int filter_write(u32 reg)
if (reg == MSR_IA32_ENERGY_PERF_BIAS)
return 0;
pr_err("Write to unrecognized MSR 0x%x by %s\n"
"Please report to x86@kernel.org\n", reg, current->comm);
pr_err("Write to unrecognized MSR 0x%x by %s (pid: %d). Please report to x86@kernel.org.\n",
reg, current->comm, current->pid);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment