Skip to content

x86, microcode: Reload ucode only per-system

Borislav Petkov lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86, microcode: Sanitize per-cpu microcode reloading interfacearch/x86/kernel/microcode_core.c+19 -710 replies
2/2x86, microcode: Make reload interface per systemarch/x86/kernel/microcode_core.c+28 -82 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPeter ZijlstraBorislav Petkov
1/2A-b A-b
2/2A-b

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 -v2 0/2] x86, microcode: Reload ucode only per-system

From: Borislav Petkov <[email protected]>

Ok, here's the second version with all review comments addressed. I've dropped the stable tag since this has been that way (and b0rked) since forever so stable rules don't apply.

We can probably do single backports if distros want it.

Changelog:

-v1:

Once upon a time there was this microcode reloading interface /sys/devices/system/cpu/cpuX/microcode/reload, where X is an online cpu on the system, which allowed the loading of microcode in a per-cpu manner.

This had problems like having different ucode revisions on an otherwise homogeneous system and needed O(n^2) overhead when tracking minimum microcode revision per-core.

So make this interface per-system so that it does microcode reloading on the whole system only.

Single commit messages have more info too.

The first patch has a stable tag which I'd like to see in stable but since it is not fixing a direct regression, I'd like to not push it upstream now but have it get tested in linux-next and go upstream during the next merge window from where it can trickle slowly to stable.

Patches have been tested on all AMD families, it wouldn't hurt if it saw some Intel testing too, although it should just work.

Holler if you see regressions/problems with it.

Thanks.