]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/speculation: Fix bad argument to rdmsrl() in cpu_set_bug_bits()
authorAlejandro Jimenez <alejandro.j.jimenez@oracle.com>
Wed, 12 Dec 2018 02:09:34 +0000 (21:09 -0500)
committerBrian Maly <brian.maly@oracle.com>
Mon, 17 Dec 2018 23:55:48 +0000 (18:55 -0500)
commitf358bb7ddd2f12747a7cae17fb24fc76a04e8e3b
tree21ba1a9e667c772c100b1542ccfd403b8f1812e1
parent0c492cbd40ba4ef7fa28906622e6b374bf74eb46
x86/speculation: Fix bad argument to rdmsrl() in cpu_set_bug_bits()

At the beginning of cpu_set_bug_bits(), rdmsrl() is incorrectly
passed as its first argument the value of 86_FEATURE_IA32_ARCH_CAPS,
which is a CPUID feature bit and not a valid MSR value. The correct
parameter to pass in the first argument to rdmsrl() is
MSR_IA32_ARCH_CAPABILITIES (0x10a).

The value returned by rdmsrl(), specifically the RDCL_NO bit, is
later used to determine if the CPU is vulnerable to L1TF and
Meltdown exploits.

Orabug: 29044805

Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Reviewed-by: Mihai Carabas <mihai.carabas@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/kernel/cpu/common.c