]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86: make get_cpu_vendor() accessible from Xen code
authorJuergen Gross <jgross@suse.com>
Thu, 17 Oct 2024 06:29:48 +0000 (08:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:07:22 +0000 (18:07 +0100)
commit8f2c179b1d3ce0a0c5d623fc9991d71167fd076f
treeb3cc3ed0d3fd3d9e56d16be47d9047cc6c431392
parent2657ba851fa3381256d81e431b20041dc232fd88
x86: make get_cpu_vendor() accessible from Xen code

commit efbcd61d9bebb771c836a3b8bfced8165633db7c upstream.

In order to be able to differentiate between AMD and Intel based
systems for very early hypercalls without having to rely on the Xen
hypercall page, make get_cpu_vendor() non-static.

Refactor early_cpu_init() for the same reason by splitting out the
loop initializing cpu_devs() into an externally callable function.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c