]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/static-call: provide a way to do very early static-call updates
authorJuergen Gross <jgross@suse.com>
Fri, 29 Nov 2024 15:15:54 +0000 (16:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:08:58 +0000 (18:08 +0100)
commitf8b1f5472b19e29439d58dc52cfb67cfeac18770
treef68d1fd2655d4edfffe3be6aeac08e6395a418ec
parent054f07a2040819bff1d5ebfb583fc2874cb29908
x86/static-call: provide a way to do very early static-call updates

commit 0ef8047b737d7480a5d4c46d956e97c190f13050 upstream.

Add static_call_update_early() for updating static-call targets in
very early boot.

This will be needed for support of Xen guest type specific hypercall
functions.

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>
Co-developed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/static_call.h
arch/x86/include/asm/sync_core.h
arch/x86/kernel/static_call.c
include/linux/compiler.h
include/linux/static_call.h
kernel/static_call_inline.c