linux-yocto/arch/x86/kernel
Michael Zhivich 98be604d96 x86/bugs: Fix use of possibly uninit value in amd_check_tsa_microcode()
For kernels compiled with CONFIG_INIT_STACK_NONE=y, the value of __reserved
field in zen_patch_rev union on the stack may be garbage.  If so, it will
prevent correct microcode check when consulting p.ucode_rev, resulting in
incorrect mitigation selection.

This is a stable-only fix.

Cc: <stable@vger.kernel.org>
Signed-off-by: Michael Zhivich <mzhivich@akamai.com>
Fixes: 90293047df ("x86/bugs: Add a Transient Scheduler Attacks mitigation")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-01 09:47:31 +01:00
..
acpi xen: allow mapping ACPI data using a different physical address 2024-10-04 16:29:43 +02:00
apic x86/apic: Provide apic_force_nmi_on_cpu() 2025-03-07 16:45:54 +01:00
cpu x86/bugs: Fix use of possibly uninit value in amd_check_tsa_microcode() 2025-08-01 09:47:31 +01:00
fpu x86/fpu/xstate: Fix inconsistencies in guest FPU xfeatures 2025-04-10 14:37:26 +02:00
kprobes kprobe/ftrace: bail out if ftrace was killed 2024-06-27 13:49:03 +02:00
.gitignore
alternative.c x86/its: Fix build error for its_static_thunk() 2025-05-22 14:12:24 +02:00
amd_gart_64.c Revert "change alloc_pages name in dma_map_ops to avoid name conflicts" 2024-09-04 13:28:24 +02:00
amd_nb.c x86/amd_nb: Use rdmsr_safe() in amd_get_mmconfig_range() 2025-03-13 12:58:19 +01:00
aperture_64.c
apm_32.c x86/APM: drop the duplicate APM_MINOR_DEV macro 2023-07-30 14:00:32 +02:00
asm-offsets_32.c
asm-offsets_64.c
asm-offsets.c x86/tdx: Pass TDCALL/SEAMCALL input/output registers via a structure 2024-12-09 10:32:19 +01:00
audit_64.c x86/audit: Fix -Wmissing-variable-declarations warning for ia32_xyz_class 2023-08-30 10:11:16 +02:00
bootflag.c
callthunks.c x86/xen: remove hypercall page 2024-12-19 18:11:36 +01:00
cet.c x86/fred: Clear WFE in missing-ENDBRANCH #CPs 2025-01-09 13:31:52 +01:00
cfi.c
check.c
cpuid.c x86/cpuid: make cpuid_class a static const structure 2023-08-05 08:31:41 +02:00
crash_core_32.c
crash_core_64.c
crash_dump_32.c
crash_dump_64.c
crash.c ARM: 2023-09-07 13:52:20 -07:00
devicetree.c of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify 2024-12-09 10:31:56 +01:00
doublefault_32.c x86: Avoid missing-prototype warnings for doublefault code 2023-05-18 11:56:18 -07:00
dumpstack_32.c
dumpstack_64.c
dumpstack.c x86/dumpstack: Fix inaccurate unwinding from exception stacks due to misplaced assignment 2025-04-10 14:37:32 +02:00
e820.c x86/e820: Fix handling of subpage regions when calculating nosave ranges in e820__register_nosave_regions() 2025-04-25 10:45:37 +02:00
early_printk.c
early-quirks.c
ebda.c
eisa.c x86/sev: Skip ROM range scans and validation for SEV-SNP guests 2024-04-03 15:29:03 +02:00
espfix_64.c
ftrace_32.S x86/ftrace: Enable HAVE_FUNCTION_GRAPH_RETVAL 2023-06-20 18:38:38 -04:00
ftrace_64.S x86/ftrace: Enable HAVE_FUNCTION_GRAPH_RETVAL 2023-06-20 18:38:38 -04:00
ftrace.c x86/its: Add support for ITS-safe return thunk 2025-05-18 08:24:11 +02:00
head_32.S x86/microcode/32: Move early loading after paging enable 2025-03-07 16:45:50 +01:00
head_64.S x86/smpboot/64: Handle X2APIC BIOS inconsistency gracefully 2024-01-01 12:42:47 +00:00
head32.c x86/microcode: Consolidate the loader enablement checking 2025-05-18 08:24:08 +02:00
head64.c x86/head/64: Move the __head definition to <asm/init.h> 2024-04-10 16:36:07 +02:00
hpet.c rtc: Add support for configuring the UIP timeout for RTC reads 2024-01-31 16:18:56 -08:00
hw_breakpoint.c
i8237.c
i8253.c x86/i8253: Call clockevent_i8253_disable() with interrupts disabled 2025-05-02 07:51:01 +02:00
i8259.c x86/i8259: Skip probing when ACPI/MADT advertises PCAT compatibility 2023-10-27 20:36:49 +02:00
ibt_selftest.S x86/ibt: Convert IBT selftest to asm 2023-08-17 17:07:09 +02:00
idt.c x86/entry: Convert INT 0x80 emulation to IDTENTRY 2023-12-13 18:45:02 +01:00
io_delay.c
ioport.c x86/iopl: Cure TIF_IO_BITMAP inconsistencies 2025-06-19 15:28:46 +02:00
irq_32.c
irq_64.c
irq_work.c x86/apic: Wrap IPI calls into helper functions 2023-08-09 12:00:55 -07:00
irq.c x86/irq: Define trace events conditionally 2025-03-22 12:50:44 -07:00
irqflags.S
irqinit.c
itmt.c x86/sched/itmt: Give all SMT siblings of a core the same priority 2023-05-08 10:58:38 +02:00
jailhouse.c xen: allow mapping ACPI data using a different physical address 2024-10-04 16:29:43 +02:00
jump_label.c
kdebugfs.c
kexec-bzimage64.c Revert "x86, crash: wrap crash dumping code into crash related ifdefs" 2025-01-10 14:31:36 +01:00
kgdb.c x86/kgdb: Fix a kerneldoc warning when build with W=1 2023-09-24 11:00:13 +02:00
ksysfs.c
kvm.c Revert "x86, crash: wrap crash dumping code into crash related ifdefs" 2025-01-10 14:31:36 +01:00
kvmclock.c x86/kvm: Do not try to disable kvmclock if it was not enabled 2024-01-25 15:35:48 -08:00
ldt.c x86: allow get_locked_pte() to fail 2023-06-19 16:19:10 -07:00
machine_kexec_32.c
machine_kexec_64.c x86/kexec: Allocate PGD for x86_64 transition page tables separately 2025-02-17 09:40:09 +01:00
Makefile x86/boot/32: Disable stackprotector and tracing for mk_early_pgtbl_32() 2025-03-09 09:55:03 +01:00
mmconf-fam10h_64.c xen: allow mapping ACPI data using a different physical address 2024-10-04 16:29:43 +02:00
module.c x86/its: Use dynamic thunks for indirect branches 2025-05-18 08:24:11 +02:00
mpparse.c Revert "x86/mpparse: Register APIC address only once" 2024-04-10 16:36:06 +02:00
msr.c x86/MSR: make msr_class a static const structure 2023-08-05 08:31:42 +02:00
nmi_selftest.c x86/apic: Wrap IPI calls into helper functions 2023-08-09 12:00:55 -07:00
nmi.c x86/nmi: Add an emergency handler in nmi_desc & use it in nmi_shootdown_cpus() 2025-06-04 14:42:05 +02:00
paravirt-spinlocks.c
paravirt.c x86/paravirt: Move halt paravirt calls under CONFIG_PARAVIRT 2025-04-25 10:45:37 +02:00
pci-dma.c x86: always initialize xen-swiotlb when xen-pcifront is enabling 2023-07-31 17:54:27 +02:00
pcspeaker.c
perf_regs.c
platform-quirks.c x86/quirks: Include linux/pnp.h for arch_pnpbios_disabled() 2023-05-18 11:56:18 -07:00
pmem.c
probe_roms.c x86/sev: Skip ROM range scans and validation for SEV-SNP guests 2024-04-03 15:29:03 +02:00
process_32.c x86/resctl: fix scheduler confusion with 'current' 2023-03-08 11:48:11 -08:00
process_64.c x86/ptrace: Cleanup the definition of the pt_regs structure 2025-01-09 13:31:51 +01:00
process.c x86/process: Move the buffer clearing before MONITOR 2025-07-10 16:03:21 +02:00
process.h
ptrace.c x86: Add PTRACE interface for shadow stack 2023-08-02 15:01:51 -07:00
pvclock.c locking/atomic: treewide: use raw_atomic*_<op>() 2023-06-05 09:57:20 +02:00
quirks.c
reboot_fixups_32.c
reboot.c x86/nmi: Add an emergency handler in nmi_desc & use it in nmi_shootdown_cpus() 2025-06-04 14:42:05 +02:00
relocate_kernel_32.S
relocate_kernel_64.S x86: Fix build regression with CONFIG_KEXEC_JUMP enabled 2024-12-14 20:00:20 +01:00
resource.c
rethook.c
rtc.c rtc: Extend timeout for waiting for UIP to clear to 1s 2024-01-31 16:18:56 -08:00
setup_percpu.c x86/apic/32: Remove x86_cpu_to_logical_apicid 2023-08-09 11:58:23 -07:00
setup.c Revert "x86, crash: wrap crash dumping code into crash related ifdefs" 2025-01-10 14:31:36 +01:00
sev_verify_cbit.S
sev-shared.c x86/sev: Move early startup code into .head.text section 2024-04-10 16:36:07 +02:00
sev.c x86/sev: Move early startup code into .head.text section 2024-04-10 16:36:07 +02:00
shstk.c x86/shstk: Make return uprobe work with shadow stack 2024-08-03 08:53:48 +02:00
signal_32.c x86/ia32: Leave NULL selector values 0~3 unchanged 2025-04-25 10:45:10 +02:00
signal_64.c x86/pkeys: Restore altstack access in sigreturn() 2024-10-10 11:57:29 +02:00
signal.c x86/pkeys: Add PKRU as a parameter in signal handling functions 2024-10-10 11:57:29 +02:00
smp.c Revert "x86, crash: wrap crash dumping code into crash related ifdefs" 2025-01-10 14:31:36 +01:00
smpboot.c x86/microcode/32: Move early loading after paging enable 2025-03-07 16:45:50 +01:00
stacktrace.c
static_call.c x86/its: Add support for ITS-safe return thunk 2025-05-18 08:24:11 +02:00
step.c
sys_ia32.c
sys_x86_64.c x86/mm: Introduce MAP_ABOVE4G 2023-07-11 14:12:19 -07:00
tboot.c
time.c x86: stop playing stack games in profile_pc() 2024-07-05 09:33:54 +02:00
tls.c
tls.h
topology.c cpu-hotplug: Provide prototypes for arch CPU registration 2023-10-11 14:27:37 +02:00
trace_clock.c
trace.c
tracepoint.c
traps.c x86/traps: Initialize DR6 by writing its architectural reset value 2025-07-10 16:03:13 +02:00
tsc_msr.c
tsc_sync.c x86/tsc: Trust initial offset in architectural TSC-adjust MSRs 2024-06-12 11:11:17 +02:00
tsc.c x86/tsc: Always save/restore TSC sched_clock() on suspend/resume 2025-04-10 14:37:42 +02:00
umip.c
unwind_frame.c
unwind_guess.c
unwind_orc.c x86/unwind/orc: Fix unwind for newly forked tasks 2024-12-09 10:31:50 +01:00
uprobes.c x86/shstk: Make return uprobe work with shadow stack 2024-08-03 08:53:48 +02:00
verify_cpu.S
vm86_32.c
vmlinux.lds.S x86/its: Add support for ITS-safe return thunk 2025-05-18 08:24:11 +02:00
vsmp_64.c x86/apic: Get rid of hard_smp_processor_id() 2023-08-09 11:58:17 -07:00
x86_init.c xen: allow mapping ACPI data using a different physical address 2024-10-04 16:29:43 +02:00