x86/microcode: Taint and warn on late loading
authorBorislav Petkov <bp@suse.de>
Wed, 25 May 2022 16:12:31 +0000 (18:12 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 31 May 2022 07:31:19 +0000 (09:31 +0200)
commitd23d33ea0fcdc4bbb484990bf53867f99c63ccab
tree4f3eac2da6ba21bd0528e3245d10913495430546
parenta77a94f86273ce42a39cb479217dd8d68acfe0ff
x86/microcode: Taint and warn on late loading

Warn before it is attempted and taint the kernel. Late loading microcode
can lead to malfunction of the kernel when the microcode update changes
behaviour. There is no way for the kernel to determine whether its safe or
not.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20220525161232.14924-4-bp@alien8.de
arch/x86/kernel/cpu/microcode/core.c