]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/cpu/AMD: Make the LFENCE instruction serialized
authorElena Reshetova <elena.reshetova@intel.com>
Thu, 4 Jan 2018 07:19:32 +0000 (23:19 -0800)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Fri, 12 Jan 2018 18:19:59 +0000 (10:19 -0800)
commit911bb9204fe25ba5fd33ffee33b966cdde2f59c7
tree9762e70495cbec07ec144f393d2d9e5ebee05a5f
parenta1e528888130f4146a9d45660e1482a69dd511eb
x86/cpu/AMD: Make the LFENCE instruction serialized

In order to reduce the impact of using MFENCE, make the execution of the
LFENCE instruction serialized.  This is done by setting bit 1 of MSR
0xc0011029 (DE_CFG).

Some families that support LFENCE do not have this MSR.  For these
families, the LFENCE instruction is already serialized.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Orabug: 27340445
CVE: CVE-2017-5753

Signed-off-by: Chuck Anderson <chuck.anderson@oracle.com>
Conflicts:
patch refers to arch/x86/include/asm/msr-index.h
code base has arch/x86/include/uapi/asm/msr-index.h

Reviewed-by: John Haxby <john.haxby@oracle.com>
Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
arch/x86/include/uapi/asm/msr-index.h
arch/x86/kernel/cpu/amd.c