Commit 1cea8a2
x86/bugs: Fix BHI handling of RRSBA
The ARCH_CAP_RRSBA check isn't correct: RRSBA may have already been
disabled by the Spectre v2 mitigation (or can otherwise be disabled by
the BHI mitigation itself if needed). In that case retpolines are fine.
Fixes: ec9404e ("x86/bhi: Add BHI mitigation knob")
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/6f56f13da34a0834b69163467449be7f58f253dc.1712813475.git.jpoimboe@kernel.org1 parent d048573 commit 1cea8a2
1 file changed
+18
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1538 | 1538 | | |
1539 | 1539 | | |
1540 | 1540 | | |
| 1541 | + | |
| 1542 | + | |
1541 | 1543 | | |
1542 | 1544 | | |
1543 | 1545 | | |
1544 | | - | |
| 1546 | + | |
| 1547 | + | |
1545 | 1548 | | |
1546 | | - | |
| 1549 | + | |
| 1550 | + | |
1547 | 1551 | | |
| 1552 | + | |
1548 | 1553 | | |
1549 | | - | |
| 1554 | + | |
| 1555 | + | |
1550 | 1556 | | |
1551 | | - | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
1555 | 1560 | | |
1556 | 1561 | | |
1557 | 1562 | | |
| |||
1652 | 1657 | | |
1653 | 1658 | | |
1654 | 1659 | | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
1658 | 1665 | | |
1659 | 1666 | | |
1660 | 1667 | | |
| |||
2809 | 2816 | | |
2810 | 2817 | | |
2811 | 2818 | | |
2812 | | - | |
2813 | | - | |
| 2819 | + | |
2814 | 2820 | | |
2815 | 2821 | | |
2816 | 2822 | | |
| |||
0 commit comments