Skip to content

x86/microcode: More urgent fixes

Borislav Petkov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86/CPU: Add native CPUID variants returning a single datumarch/x86/include/asm/processor.h+18 -04 replies
2/5x86/microcode: Use native CPUID to tickle out microcode revisionarch/x86/kernel/cpu/intel.c arch/x86/kernel/cpu/microcode/intel.c+4 -240 replies
3/5x86/microcode/intel: Add a helper which gives the microcode revisionarch/x86/include/asm/microcode_intel.h arch/x86/kernel/cpu/intel.c arch/x86/kernel/cpu/microcode/intel.c+31 -380 replies
4/5x86/microcode/intel: Fix allocation size of struct ucode_patcharch/x86/kernel/cpu/microcode/intel.c+1 -10 replies
5/5x86/microcode/intel: Use correct buffer size for saving microcode dataarch/x86/kernel/cpu/microcode/intel.c+3 -20 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchJun'ichi Nomura
1/5
2/5Reported-and-tested-by
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] x86/microcode: More urgent fixes

From: Borislav Petkov <[email protected]>

Hi guys,

here are fixes for three more issues with the microcode loader. First one is culminating in adding an intel_get_microcode_revision() helper which does the proper steps to get the current microcode revision on an Intel CPU and should be used everywhere instead of opencoding (and forgetting) to do a CPUID(1).

The other two are fixes for 06b8534cb728 ("x86/microcode: Rework microcode loading") which slipped through my testing.

All this is for 4.10 only as it fixes fallout from stuff which went in this merge window.

Please apply,
thanks.

Borislav Petkov (3):
x86/CPU: Add native CPUID variants returning a single datum x86/microcode: Use native CPUID to tickle out microcode revision x86/microcode/intel: Add a helper which gives the microcode revision

Junichi Nomura (2):
x86/microcode/intel: Fix allocation size of struct ucode_patch x86/microcode/intel: Use correct buffer size for saving microcode data

 arch/x86/include/asm/microcode_intel.h | 15 ++++++++
 arch/x86/include/asm/processor.h       | 18 +++++++++
 arch/x86/kernel/cpu/intel.c            | 11 ++----
 arch/x86/kernel/cpu/microcode/intel.c  | 70 +++++++++-------------------------
 4 files changed, 53 insertions(+), 61 deletions(-)
Signature · 1 line
2.11.0