Re: [PATCH] x86: fix rdmsr MSR_PLATFORM_INFO unsafe warning in kvm guest

From: Wanpeng Li
Date: Thu Jun 23 2016 - 03:35:06 EST


Hi Jacob,
2016-06-23 15:28 GMT+08:00 Wanpeng Li <kernellwp@xxxxxxxxx>:
> 2016-06-23 15:09 GMT+08:00 Thomas Gleixner <tglx@xxxxxxxxxxxxx>:
>> On Wed, 22 Jun 2016, Wanpeng Li wrote:
>>> After commit (fc141535ad8 : "x86 tsc_msr: Extend to include Intel Core
>>
>> Where did you find that commit? It's neither in Linus tree nor in tip.
>
> It is reported by lkp. https://lkml.org/lkml/2016/6/20/110 The patch
> is against x86 branch on Len Brown's tree. And try to fix this commit:
> https://git.kernel.org/cgit/linux/kernel/git/lenb/linux.git/commit/?h=x86&id=fc141535ad8a67fd58623289c04e35465e2a07f2

I prefer this patch can be applied separately instead of fold into the
bad commit since it shows the issue when access MSR_PLATFORM_INFO in
kvm guest and other guys who want to access MSR_PLATFORM_INFO later
can find the changelog and make better decisions.

Regards,
Wanpeng Li