kernel_samsung_a53x/arch/x86/kernel
Borislav Petkov (AMD) e2dd3c6cff x86/CPU/AMD: Check vendor in the AMD microcode callback
commit 9b8493dc43044376716d789d07699f17d538a7c4 upstream.

Commit in Fixes added an AMD-specific microcode callback. However, it
didn't check the CPU vendor the kernel runs on explicitly.

The only reason the Zenbleed check in it didn't run on other x86 vendors
hardware was pure coincidental luck:

  if (!cpu_has_amd_erratum(c, amd_zenbleed))
	  return;

gives true on other vendors because they don't have those families and
models.

However, with the removal of the cpu_has_amd_erratum() in

  05f5f73936fa ("x86/CPU/AMD: Drop now unused CPU erratum checking function")

that coincidental condition is gone, leading to the zenbleed check
getting executed on other vendors too.

Add the explicit vendor check for the whole callback as it should've
been done in the first place.

Fixes: 522b1d69219d ("x86/cpu/amd: Add a Zenbleed fix")
Cc: <stable@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20231201184226.16749-1-bp@alien8.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:11:46 +01:00
..
acpi x86/i8259: Skip probing when ACPI/MADT advertises PCAT compatibility 2024-11-18 10:58:32 +01:00
apic Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpu x86/CPU/AMD: Check vendor in the AMD microcode callback 2024-11-18 12:11:46 +01:00
fpu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kprobes Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
alternative.c x86/alternatives: Disable KASAN in apply_alternatives() 2024-11-08 11:25:53 +01:00
amd_gart_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd_nb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
apb_timer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aperture_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
apm_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asm-offsets.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asm-offsets_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asm-offsets_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
audit_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bootflag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cc_platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
check.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpuid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crash_core_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crash_core_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crash_dump_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crash_dump_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devicetree.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
doublefault_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dumpstack.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dumpstack_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dumpstack_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e820.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
early-quirks.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
early_printk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ebda.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eisa.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
espfix_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ftrace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ftrace_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ftrace_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
head32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
head64.c x86/boot: Fix incorrect startup_gdt_descr.size 2024-11-18 11:42:47 +01:00
head_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
head_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpet.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_breakpoint.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i8237.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i8253.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i8259.c x86/i8259: Skip probing when ACPI/MADT advertises PCAT compatibility 2024-11-18 10:58:32 +01:00
idt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ima_arch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io_delay.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ioport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq_work.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irqflags.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irqinit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
itmt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jailhouse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jump_label.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kdebugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kexec-bzimage64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kgdb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ksysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kvm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kvmclock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ldt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
machine_kexec_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
machine_kexec_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmconf-fam10h_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
module.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpparse.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
msr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nmi_selftest.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
paravirt-spinlocks.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
paravirt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
paravirt_patch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-iommu_table.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-swiotlb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcspeaker.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf_regs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
platform-quirks.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
probe_roms.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
process.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
process.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
process_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
process_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ptrace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvclock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
quirks.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reboot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reboot_fixups_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
relocate_kernel_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
relocate_kernel_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
resource.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
setup.c x86/mm: Fix RESERVE_BRK() for older binutils 2024-11-18 10:58:45 +01:00
setup_percpu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sev-es-shared.c x86/sev: Check for user-space IOIO pointing to kernel space 2024-11-08 11:26:09 +01:00
sev-es.c x86/sev: Check IOBM for IOIO exceptions from user-space 2024-11-08 11:26:09 +01:00
sev_verify_cbit.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
signal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
signal_compat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smpboot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stacktrace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
static_call.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
step.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sys_ia32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sys_x86_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysfb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysfb_efi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysfb_simplefb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tboot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
time.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tls.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tls.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
topology.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace_clock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tracepoint.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
traps.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tsc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tsc_msr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tsc_sync.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
umip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
unwind_frame.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
unwind_guess.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
unwind_orc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uprobes.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
verify_cpu.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vm86_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmlinux.lds.S x86: Fix .brk attribute in linker script 2024-11-18 10:58:46 +01:00
vsmp_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x86_init.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00