Skip to content

x86/microcode: Intel early loader cleanups

Borislav Petkov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13x86/microcode/intel: Check if microcode was found before applyingarch/x86/kernel/cpu/microcode/intel_early.c+10 -40 replies
2/13x86/microcode/intel: Do the mc_saved_src NULL check firstarch/x86/kernel/cpu/microcode/intel_early.c+22 -151 reply
3/13x86/microcode/intel: Get rid of last arg to load_ucode_intel_bsp()arch/x86/kernel/cpu/microcode/intel_early.c+8 -102 replies
4/13x86/microcode/intel: Simplify load_ucode_intel_bsp()arch/x86/kernel/cpu/microcode/intel_early.c+18 -312 replies
5/13x86/microcode/intel: Make _save_mc() return the updated saved countarch/x86/kernel/cpu/microcode/intel_early.c+14 -151 reply
6/13x86/microcode/intel: Sanitize _save_mc()arch/x86/kernel/cpu/microcode/intel_early.c+23 -260 replies
7/13x86/microcode/intel: Rename update_match_revision()arch/x86/include/asm/microcode_intel.h arch/x86/kernel/cpu/microcode/intel_early.c arch/x86/kernel/cpu/microcode/intel_lib.c+8 -104 replies
8/13x86/microcode: Consolidate family,model, ... codearch/x86/include/asm/microcode.h arch/x86/kernel/cpu/microcode/core_early.c arch/x86/kernel/cpu/microcode/intel_early.c+101 -1061 reply
9/13x86/microcode/intel: Simplify generic_load_microcode_early()arch/x86/kernel/cpu/microcode/intel_early.c+26 -290 replies
10/13x86/microcode/intel: Move mc arg last in get_matching_{microcode|sig}arch/x86/include/asm/microcode_intel.h arch/x86/kernel/cpu/microcode/intel.c arch/x86/kernel/cpu/microcode/intel_early.c +1 more+14 -172 replies
11/13x86/microcode/intel: Sanitize microcode_pointer()arch/x86/kernel/cpu/microcode/intel_early.c+9 -140 replies
12/13x86/microcode/intel: Check scan_microcode()'s retvalarch/x86/kernel/cpu/microcode/intel_early.c+10 -80 replies
13/13x86/microcode/intel: Fix printing of microcode blobs in show_saved_mc()arch/x86/kernel/cpu/microcode/intel_early.c+12 -24 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] x86/microcode: Intel early loader cleanups

From: Borislav Petkov <[email protected]>

Hi,

so this is something which got started in the aftermath of a discussion about some robustifying fixes to the microcode loader by Quentin. Everyone agrees that current code needs a good rubbing so here's part one of that. More to come later, let's not overwhelm people with huge patchsets.

All patches are cleanups and simplifications in an attempt to make the code more readable and simpler and enable follow-up improvements.

Thanks.

Borislav Petkov (13):
x86/microcode/intel: Check if microcode was found before applying x86/microcode/intel: Do the mc_saved_src NULL check first x86/microcode/intel: Get rid of last arg to load_ucode_intel_bsp() x86/microcode/intel: Simplify load_ucode_intel_bsp() x86/microcode/intel: Make _save_mc() return the updated saved count x86/microcode/intel: Sanitize _save_mc() x86/microcode/intel: Rename update_match_revision() x86/microcode: Consolidate family,model, ... code x86/microcode/intel: Simplify generic_load_microcode_early() x86/microcode/intel: Move mc arg last in get_matching_{microcode|sig} x86/microcode/intel: Sanitize microcode_pointer() x86/microcode/intel: Check scan_microcode()'s retval x86/microcode/intel: Fix printing of microcode blobs in

    show_saved_mc()
 arch/x86/include/asm/microcode.h            |  73 ++++++
 arch/x86/include/asm/microcode_intel.h      |  13 +-
 arch/x86/kernel/cpu/microcode/core_early.c  |  75 +-----
 arch/x86/kernel/cpu/microcode/intel.c       |   4 +-
 arch/x86/kernel/cpu/microcode/intel_early.c | 341 +++++++++++++---------------
 arch/x86/kernel/cpu/microcode/intel_lib.c   |  22 +-
 6 files changed, 258 insertions(+), 270 deletions(-)
Signature · 1 line
2.2.0.33.gc18b867