]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/idle: Disable IBRS entering idle and enable it on wakeup
authorTim Chen <tim.c.chen@linux.intel.com>
Fri, 22 Dec 2017 01:21:49 +0000 (20:21 -0500)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Fri, 12 Jan 2018 18:19:55 +0000 (10:19 -0800)
commit74e3d3aee8471aaad174d68ae9733a0b88e36d58
treea2da8d9c0f1083941fa50edc5406347e7db318b3
parent42c22a28024ee8f6695836ae38761bb46b46b73c
x86/idle: Disable IBRS entering idle and enable it on wakeup

Clear IBRS on idle entry and set it on idle exit into kernel on mwait.

Orabug: 27344012
CVE: CVE-2017-5715

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
[Backport: We don't have b466bdb614823
 "x86/asm/delay: Introduce an MWAITX-based delay with a configurable timer"
 hence the change to delay_mwaitx is not needed]

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