Commit 394ed15
committed
x86/bugs: Enable STIBP for IBPB mitigated RETBleed
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2138389
commit e6cfcdd
Author: Kim Phillips <kim.phillips@amd.com>
Date: Mon, 8 Aug 2022 09:32:33 -0500
x86/bugs: Enable STIBP for IBPB mitigated RETBleed
AMD's "Technical Guidance for Mitigating Branch Type Confusion,
Rev. 1.0 2022-07-12" whitepaper, under section 6.1.2 "IBPB On
Privileged Mode Entry / SMT Safety" says:
Similar to the Jmp2Ret mitigation, if the code on the sibling thread
cannot be trusted, software should set STIBP to 1 or disable SMT to
ensure SMT safety when using this mitigation.
So, like already being done for retbleed=unret, and now also for
retbleed=ibpb, force STIBP on machines that have it, and report its SMT
vulnerability status accordingly.
[ bp: Remove the "we" and remove "[AMD]" applicability parameter which
doesn't work here. ]
Fixes: 3ebc170 ("x86/bugs: Add retbleed=ibpb")
Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: stable@vger.kernel.org # 5.10, 5.15, 5.19
Link: https://bugzilla.kernel.org/show_bug.cgi?id=206537
Link: https://lore.kernel.org/r/20220804192201.439596-1-kim.phillips@amd.com
Signed-off-by: Waiman Long <longman@redhat.com>1 parent 6579554 commit 394ed15
File tree
2 files changed
+27
-12
lines changed- Documentation/admin-guide
- arch/x86/kernel/cpu
2 files changed
+27
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5099 | 5099 | | |
5100 | 5100 | | |
5101 | 5101 | | |
| 5102 | + | |
| 5103 | + | |
| 5104 | + | |
| 5105 | + | |
| 5106 | + | |
| 5107 | + | |
5102 | 5108 | | |
5103 | 5109 | | |
5104 | 5110 | | |
5105 | 5111 | | |
5106 | 5112 | | |
5107 | 5113 | | |
5108 | | - | |
5109 | | - | |
5110 | | - | |
5111 | | - | |
5112 | | - | |
5113 | | - | |
5114 | | - | |
5115 | | - | |
| 5114 | + | |
| 5115 | + | |
| 5116 | + | |
| 5117 | + | |
| 5118 | + | |
| 5119 | + | |
| 5120 | + | |
| 5121 | + | |
| 5122 | + | |
| 5123 | + | |
| 5124 | + | |
| 5125 | + | |
| 5126 | + | |
| 5127 | + | |
| 5128 | + | |
5116 | 5129 | | |
5117 | 5130 | | |
5118 | 5131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
1178 | | - | |
| 1178 | + | |
| 1179 | + | |
1179 | 1180 | | |
1180 | 1181 | | |
1181 | 1182 | | |
| |||
2359 | 2360 | | |
2360 | 2361 | | |
2361 | 2362 | | |
2362 | | - | |
| 2363 | + | |
| 2364 | + | |
2363 | 2365 | | |
2364 | 2366 | | |
2365 | | - | |
| 2367 | + | |
2366 | 2368 | | |
2367 | 2369 | | |
2368 | 2370 | | |
| |||
0 commit comments