]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/microcode: Clarify the late load logic
authorThomas Gleixner <tglx@linutronix.de>
Mon, 2 Oct 2023 11:59:57 +0000 (13:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 15:45:53 +0000 (16:45 +0100)
commit346bc32a465d34de33b94c110e0105fb966e3dea
treee16f38c03f71f8650dc6cb158c398bf18f1e5237
parent7412a65d956252e06e32570f6d844a5f08cc00b3
x86/microcode: Clarify the late load logic

commit 6f059e634dcd0d725854514c94c114bbdd83950d upstream

reload_store() is way too complicated. Split the inner workings out and
make the following enhancements:

 - Taint the kernel only when the microcode was actually updated. If. e.g.
   the rendezvous fails, then nothing happened and there is no reason for
   tainting.

 - Return useful error codes

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
Link: https://lore.kernel.org/r/20231002115903.145048840@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/core.c