[PATCH v2 0/5] Bugs clean-up

David Kaplan posted 5 patches 1 month, 2 weeks ago
There is a newer version of this series
.../hw-vuln/attack_vector_controls.rst        |   5 +-
arch/x86/include/asm/nospec-branch.h          |   1 +
arch/x86/kernel/cpu/bugs.c                    | 387 ++++++++----------
3 files changed, 169 insertions(+), 224 deletions(-)
[PATCH v2 0/5] Bugs clean-up
Posted by David Kaplan 1 month, 2 weeks ago
Patches 1-3 focus on cleaning up parameter parsing.  Most mitigations use
early_param but a few older ones do not and look at boot_command_line
directly.  Modify those to be consistent with the newer ones.

Patch 4 adds missing attack vector controls for spec store bypass.

Patch 5 cleans up straggling unnecessary calls to cpu_mitigations_off().

Changes from v1
   - Removed spec_*_print_cond() functions
   - Fixed bugs pointed out by Pawan
   - Added last 2 patches

David Kaplan (5):
  x86/bugs: Use early_param for spectre_v2_user
  x86/bugs: Use early_param for spectre_v2
  x86/bugs: Simplify SSB cmdline parsing
  x86/bugs: Add attack vector controls for SSB
  x86/bugs: Remove uses of cpu_mitigations_off()

 .../hw-vuln/attack_vector_controls.rst        |   5 +-
 arch/x86/include/asm/nospec-branch.h          |   1 +
 arch/x86/kernel/cpu/bugs.c                    | 387 ++++++++----------
 3 files changed, 169 insertions(+), 224 deletions(-)


base-commit: 2fd6a6194558303fffd2d7a7fa73fc318d680f38
-- 
2.34.1
Re: [PATCH v2 0/5] Bugs clean-up
Posted by Pawan Gupta 1 month, 1 week ago
On Tue, Aug 19, 2025 at 02:21:55PM -0500, David Kaplan wrote:
> Patches 1-3 focus on cleaning up parameter parsing.  Most mitigations use
> early_param but a few older ones do not and look at boot_command_line
> directly.  Modify those to be consistent with the newer ones.
> 
> Patch 4 adds missing attack vector controls for spec store bypass.
> 
> Patch 5 cleans up straggling unnecessary calls to cpu_mitigations_off().
> 
> Changes from v1
>    - Removed spec_*_print_cond() functions
>    - Fixed bugs pointed out by Pawan
>    - Added last 2 patches
> 
> David Kaplan (5):
>   x86/bugs: Use early_param for spectre_v2_user
>   x86/bugs: Use early_param for spectre_v2
>   x86/bugs: Simplify SSB cmdline parsing
>   x86/bugs: Add attack vector controls for SSB
>   x86/bugs: Remove uses of cpu_mitigations_off()

For the series:

Reviewed-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>