]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/enter: Use IBRS on syscall and interrupts
authorTim Chen <tim.c.chen@linux.intel.com>
Fri, 15 Dec 2017 12:30:01 +0000 (04:30 -0800)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Fri, 12 Jan 2018 18:19:55 +0000 (10:19 -0800)
commitdfd01437db0b76a0265d3b007d95f7a686533e8b
tree0729714668a1e1bca5c426a32fbacb201d37cce8
parent86eb701a9cc2a4b6e602d77b2b3f12a5e1e267f3
x86/enter: Use IBRS on syscall and interrupts

Set IBRS upon kernel entrance via syscall and interrupts. Clear it
upon exit.

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: I had to add 'asm/spec_ctrl.h' in the assembler files]
 Also we should not put ENABLE_IBRS on irq_entries_start]

Reviewed-by: John Haxby <john.haxby@oracle.com>
Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
arch/x86/ia32/ia32entry.S
arch/x86/kernel/entry_64.S