We missed them in the first round of backporting.
Also move the DISABLE_IBRS _after_ the trace_hardirqs_on_caller
call.
Orabug:
27344012
CVE:CVE-2017-5715
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
v2: Move the DISABLE_IBRS after the TRACE_HARDIRQ macro
Move the ENABLE_IBRS up
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
movl %esp,%r8d
CFI_REGISTER rsp,r8
movq PER_CPU_VAR(cpu_current_top_of_stack),%rsp
+
+ ENABLE_IBRS
+ STUFF_RSB
+
ENABLE_INTERRUPTS(CLBR_NONE)
/* Zero-extending 32-bit regs, do not remove */
xorq %r9,%r9
xorq %r8,%r8
TRACE_IRQS_ON
+ DISABLE_IBRS
SWITCH_USER_CR3
movl RSP(%rsp),%esp
CFI_RESTORE rsp