Skip to content

VERW based clean-up

Daniel Sneddon linux-doc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 11 repliesIn review

V2 from the cover letter

Dropped the new knob previously introduced in the first patch (Borislav) Add warning if not all 4 mitigations states match (Borislav) Removed extra comment (Josh)
Code clean-up (Josh)

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/bugs: Check VERW mitigations for consistencyarch/x86/kernel/cpu/bugs.c+18 -04 replies
2/2x86/bugs: Clean-up verw mitigationsarch/x86/include/asm/processor.h arch/x86/kernel/cpu/bugs.c+81 -1276 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchNikolay Borisov
1/2
2/2R-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 0/2] VERW based clean-up

There are several mitigations that use the VERW instruction to clean up internal CPU buffers. Currently, each of these mitigations is treated independently, but if VERW is needed for one of the mitigations, it's on for all of them. This can lead to some confusion if a user tries to disable one of the mitigations, but it is left enabled for one of the others. The user needs to disable all 4 VERW- based mitigations. Warn the user when one or more VERW mitigations are disabled but not all of them. While we're messing with VERW mitigations, might as well simplify them and remove the need to call each of them twice.

V2:
Dropped the new knob previously introduced in the first patch (Borislav) Add warning if not all 4 mitigations states match (Borislav) Removed extra comment (Josh)
Code clean-up (Josh)

Daniel Sneddon (2):
x86/bugs: Check VERW mitigations for consistency x86/bugs: Clean-up verw mitigations

 arch/x86/include/asm/processor.h |   2 +-
 arch/x86/kernel/cpu/bugs.c       | 206 +++++++++++++------------------
 2 files changed, 90 insertions(+), 118 deletions(-)
Signature · 1 line
2.25.1