File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -2633,27 +2633,16 @@ config MITIGATION_RFDS
2633
2633
stored in floating point, vector and integer registers.
2634
2634
See also <file:Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst>
2635
2635
2636
- choice
2637
- prompt "Clear branch history "
2636
+ config MITIGATION_SPECTRE_BHI
2637
+ bool "Mitigate Spectre-BHB (Branch History Injection) "
2638
2638
depends on CPU_SUP_INTEL
2639
- default SPECTRE_BHI_ON
2639
+ default y
2640
2640
help
2641
2641
Enable BHI mitigations. BHI attacks are a form of Spectre V2 attacks
2642
2642
where the branch history buffer is poisoned to speculatively steer
2643
2643
indirect branches.
2644
2644
See <file:Documentation/admin-guide/hw-vuln/spectre.rst>
2645
2645
2646
- config SPECTRE_BHI_ON
2647
- bool "on"
2648
- help
2649
- Equivalent to setting spectre_bhi=on command line parameter.
2650
- config SPECTRE_BHI_OFF
2651
- bool "off"
2652
- help
2653
- Equivalent to setting spectre_bhi=off command line parameter.
2654
-
2655
- endchoice
2656
-
2657
2646
endif
2658
2647
2659
2648
config ARCH_HAS_ADD_PAGES
Original file line number Diff line number Diff line change @@ -1628,7 +1628,7 @@ enum bhi_mitigations {
1628
1628
};
1629
1629
1630
1630
static enum bhi_mitigations bhi_mitigation __ro_after_init =
1631
- IS_ENABLED (CONFIG_SPECTRE_BHI_ON ) ? BHI_MITIGATION_ON : BHI_MITIGATION_OFF ;
1631
+ IS_ENABLED (CONFIG_MITIGATION_SPECTRE_BHI ) ? BHI_MITIGATION_ON : BHI_MITIGATION_OFF ;
1632
1632
1633
1633
static int __init spectre_bhi_parse_cmdline (char * str )
1634
1634
{
You can’t perform that action at this time.
0 commit comments