summaryrefslogtreecommitdiff
path: root/include/linux/static_call.h
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2024-11-29 18:15:54 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-19 20:13:23 +0300
commitfa0f23a60ea5c20e9e41bd2cf8bc049017c4f305 (patch)
tree6de651f6e737e8e758949f124c4d74182242a42f /include/linux/static_call.h
parentc6eef3643608616b1dfdcf325738329d19d5d9e2 (diff)
downloadlinux-fa0f23a60ea5c20e9e41bd2cf8bc049017c4f305.tar.xz
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>
Diffstat (limited to 'include/linux/static_call.h')
-rw-r--r--include/linux/static_call.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/static_call.h b/include/linux/static_call.h
index 141e6b176a1b..785980af8972 100644
--- a/include/linux/static_call.h
+++ b/include/linux/static_call.h
@@ -138,6 +138,7 @@
#ifdef CONFIG_HAVE_STATIC_CALL
#include <asm/static_call.h>
+extern int static_call_initialized;
/*
* Either @site or @tramp can be NULL.
*/