]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
x86/xen: fix SLS mitigation in xen_hypercall_iret()
authorJuergen Gross <jgross@suse.com>
Fri, 17 Jan 2025 11:05:51 +0000 (12:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2025 16:16:04 +0000 (17:16 +0100)
The backport of upstream patch a2796dff62d6 ("x86/xen: don't do PV iret
hypercall through hypercall page") missed to adapt the SLS mitigation
config check from CONFIG_MITIGATION_SLS to CONFIG_SLS.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/xen/xen-asm.S

index 045760ddac6abe94afadf4056b61bbdb30f7d572..81012ee191f8e66592456b227215b702d0d3dc5b 100644 (file)
@@ -214,7 +214,7 @@ SYM_CODE_END(xen_early_idt_handler_array)
        push %rax
        mov  $__HYPERVISOR_iret, %eax
        syscall         /* Do the IRET. */
-#ifdef CONFIG_MITIGATION_SLS
+#ifdef CONFIG_SLS
        int3
 #endif
 .endm