]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/stackframe/32: Repair 32-bit Xen PV
authorJan Beulich <jbeulich@suse.com>
Mon, 18 Nov 2019 15:21:12 +0000 (16:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2019 09:08:02 +0000 (10:08 +0100)
commitc449a9c1298dd212e5e1cede5dd48bb8ce2a0263
tree292086f8f3f1bae0e060b0f5fa1aaf13e5fb1e44
parent7609da8781ba261e66b8c6873b0c8a379ca3c5c4
x86/stackframe/32: Repair 32-bit Xen PV

commit 81ff2c37f9e5d77593928df0536d86443195fd64 upstream.

Once again RPL checks have been introduced which don't account for a 32-bit
kernel living in ring 1 when running in a PV Xen domain. The case in
FIXUP_FRAME has been preventing boot.

Adjust BUG_IF_WRONG_CR3 as well to guard against future uses of the macro
on a code path reachable when running in PV mode under Xen; I have to admit
that I stopped at a certain point trying to figure out whether there are
present ones.

Fixes: 3c88c692c287 ("x86/stackframe/32: Provide consistent pt_regs")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Stable Team <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/0fad341f-b7f5-f859-d55d-f0084ee7087e@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/entry/entry_32.S
arch/x86/include/asm/segment.h