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 @@ -2566,27 +2566,16 @@ config MITIGATION_RFDS
2566
2566
stored in floating point, vector and integer registers.
2567
2567
See also <file:Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst>
2568
2568
2569
- choice
2570
- prompt "Clear branch history "
2569
+ config MITIGATION_SPECTRE_BHI
2570
+ bool "Mitigate Spectre-BHB (Branch History Injection) "
2571
2571
depends on CPU_SUP_INTEL
2572
- default SPECTRE_BHI_ON
2572
+ default y
2573
2573
help
2574
2574
Enable BHI mitigations. BHI attacks are a form of Spectre V2 attacks
2575
2575
where the branch history buffer is poisoned to speculatively steer
2576
2576
indirect branches.
2577
2577
See <file:Documentation/admin-guide/hw-vuln/spectre.rst>
2578
2578
2579
- config SPECTRE_BHI_ON
2580
- bool "on"
2581
- help
2582
- Equivalent to setting spectre_bhi=on command line parameter.
2583
- config SPECTRE_BHI_OFF
2584
- bool "off"
2585
- help
2586
- Equivalent to setting spectre_bhi=off command line parameter.
2587
-
2588
- endchoice
2589
-
2590
2579
endif
2591
2580
2592
2581
config ARCH_HAS_ADD_PAGES
Original file line number Diff line number Diff line change @@ -1627,7 +1627,7 @@ enum bhi_mitigations {
1627
1627
};
1628
1628
1629
1629
static enum bhi_mitigations bhi_mitigation __ro_after_init =
1630
- IS_ENABLED (CONFIG_SPECTRE_BHI_ON ) ? BHI_MITIGATION_ON : BHI_MITIGATION_OFF ;
1630
+ IS_ENABLED (CONFIG_MITIGATION_SPECTRE_BHI ) ? BHI_MITIGATION_ON : BHI_MITIGATION_OFF ;
1631
1631
1632
1632
static int __init spectre_bhi_parse_cmdline (char * str )
1633
1633
{
You can’t perform that action at this time.
0 commit comments