]> www.infradead.org Git - users/willy/linux.git/commit
x86/cpu: fix unbootable VMs by inlining memcmp() in hypervisor_cpuid_base()
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 2 Aug 2024 15:42:52 +0000 (18:42 +0300)
committerJuergen Gross <jgross@suse.com>
Thu, 12 Sep 2024 06:25:12 +0000 (08:25 +0200)
commit416a33c9afcef24d8b48e414d08d4ae4472aa669
tree7e110e891366473155eb5bac442b5d0c6fe1a51f
parent661362e3dcab464d6b6976c019fd5b5433bda85f
x86/cpu: fix unbootable VMs by inlining memcmp() in hypervisor_cpuid_base()

If this memcmp() is not inlined then PVH early boot code can call
into KASAN-instrumented memcmp() which results in unbootable VMs:

pvh_start_xen
xen_prepare_pvh
xen_cpuid_base
hypervisor_cpuid_base
memcmp

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Juergen Gross <jgross@suse.com>
Message-ID: <20240802154253.482658-2-adobriyan@gmail.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/include/asm/cpuid.h