lkml.org 
[lkml]   [2021]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: UBSAN: shift-out-of-bounds in kvm_vcpu_after_set_cpuid
From
Date
On 12/01/21 00:01, Sean Christopherson wrote:
>> Perhaps cpuid_query_maxphyaddr() should just look at the low 5 bits of
>> CPUID.80000008H:EAX?

The low 6 bits I guess---yes, that would make sense and it would have
also fixed the bug.

(Nevertheless it's a good idea to make rsvd_bits more robust as well, as
in the commit that Sean referenced.

Paolo

\
 
 \ /
  Last update: 2021-01-12 09:09    [W:0.037 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site