Skip to content

x86/microcode/intel: Microcode verification cleanups

Borislav Petkov lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86/microcode/intel: Change checksum variables to u32arch/x86/kernel/cpu/microcode/intel_lib.c+4 -40 replies
2/5x86/microcode/intel: Get rid of DWSIZEarch/x86/include/asm/microcode_intel.h arch/x86/kernel/cpu/microcode/intel_lib.c+2 -30 replies
3/5x86/microcode/intel: Merge two consecutive if-statementsarch/x86/kernel/cpu/microcode/intel_lib.c+5 -50 replies
4/5x86/microcode/intel: Improve microcode sanity-checking error messagesarch/x86/kernel/cpu/microcode/intel_lib.c+26 -100 replies
5/5x86/microcode/intel: Drop orig_sum from ext signature checksumarch/x86/kernel/cpu/microcode/intel_lib.c+3 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] x86/microcode/intel: Microcode verification cleanups

From: Borislav Petkov <[email protected]>

Hi,

here's a small set which makes sure the microcode data checksum verification is done using u32s, as the SDM says and not what we did. The interesting part is that Chris Bainbridge caught this with UBSAN even though the SDM has been proclaiming using unsigned dwords already.

The rest are some trivial cleanups which sprang out after me staring at microcode_sanity_check(). FWIW, it could use some more but that's for later.

Patches ontop of tip/x86/microcode.

Borislav Petkov (4):
x86/microcode/intel: Get rid of DWSIZE x86/microcode/intel: Merge two consecutive if-statements x86/microcode/intel: Improve microcode sanity-checking error messages x86/microcode/intel: Drop orig_sum from ext signature checksum

Chris Bainbridge (1):
x86/microcode/intel: Change checksum variables to u32

 arch/x86/include/asm/microcode_intel.h    |  1 -
 arch/x86/kernel/cpu/microcode/intel_lib.c | 58 ++++++++++++++++++++-----------
 2 files changed, 37 insertions(+), 22 deletions(-)
Signature · 1 line
2.3.5