Files
linux/arch/x86/include/asm
Borislav Petkov (AMD) 5214a9f6c0 x86/microcode: Consolidate the loader enablement checking
Consolidate the whole logic which determines whether the microcode loader
should be enabled or not into a single function and call it everywhere.

Well, almost everywhere - not in mk_early_pgtbl_32() because there the kernel
is running without paging enabled and checking dis_ucode_ldr et al would
require physical addresses and uglification of the code.

But since this is 32-bit, the easier thing to do is to simply map the initrd
unconditionally especially since that mapping is getting removed later anyway
by zap_early_initrd_mapping() and avoid the uglification.

In doing so, address the issue of old 486er machines without CPUID
support, not booting current kernels.

  [ mingo: Fix no previous prototype for ‘microcode_loader_disabled’ [-Wmissing-prototypes] ]

Fixes: 4c585af718 ("x86/boot/32: Temporarily map initrd for microcode loading")
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://lore.kernel.org/r/CANpbe9Wm3z8fy9HbgS8cuhoj0TREYEEkBipDuhgkWFvqX0UoVQ@mail.gmail.com
2025-05-05 10:51:00 +02:00
..
2021-10-20 22:35:04 +02:00
2022-08-04 11:11:59 +02:00
2023-11-21 17:23:35 +01:00
2025-02-26 12:24:17 +01:00
2025-03-19 11:19:22 +01:00
2020-05-07 16:06:20 +02:00
2025-01-14 08:35:08 +01:00
2024-11-25 12:11:55 -08:00
2021-10-28 23:25:26 +02:00
2025-03-17 22:06:53 -07:00
2025-01-13 23:07:18 +01:00
2020-11-06 23:14:58 +01:00
2022-04-07 08:27:52 -07:00
2022-11-10 13:12:45 +01:00
2025-03-17 22:06:53 -07:00
2021-12-11 09:09:45 +01:00
2025-02-14 10:32:05 +01:00
2020-03-21 16:03:25 +01:00
2024-10-02 16:53:38 +02:00
2025-02-18 11:08:36 +01:00
2022-01-30 21:17:00 -05:00
2022-01-30 21:17:00 -05:00
2025-02-21 09:54:03 +01:00
2024-06-25 17:15:48 +02:00