]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
objtool/x86: allow syscall instruction
authorJuergen Gross <jgross@suse.com>
Fri, 29 Nov 2024 14:47:49 +0000 (15:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:08:58 +0000 (18:08 +0100)
commit054f07a2040819bff1d5ebfb583fc2874cb29908
treeb4151dbd2e0b27e7e2d489d2e58120fae7cddad0
parent259550d6b0b352dded1b97b1243aa4a6b45c6de9
objtool/x86: allow syscall instruction

commit dda014ba59331dee4f3b773a020e109932f4bd24 upstream.

The syscall instruction is used in Xen PV mode for doing hypercalls.
Allow syscall to be used in the kernel in case it is tagged with an
unwind hint for objtool.

This is part of XSA-466 / CVE-2024-53241.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Co-developed-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/objtool/check.c