From c0c921449cb1f8323a4ea43cba9685bbd601252a Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Mon, 8 Jan 2018 12:33:29 -0500 Subject: [PATCH] x86/spec_ctrl: Add missing IBRS_DISABLE .. which was missing when the system call is done before the IBRS. Orabug: 27365403 Reported-by: Alexandre Chartre Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Brian Maly Signed-off-by: Kirtikar Kashyap --- arch/x86/kernel/entry_64.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S index 507bf55f518c..b0b13f6ed832 100644 --- a/arch/x86/kernel/entry_64.S +++ b/arch/x86/kernel/entry_64.S @@ -307,6 +307,7 @@ system_call_fastpath: CFI_REGISTER rip,rcx movq EFLAGS(%rsp),%r11 /*CFI_REGISTER rflags,r11*/ + DISABLE_IBRS RESTORE_C_REGS_EXCEPT_RCX_R11 /* * This opens a window where we have a user CR3, but are -- 2.50.1