Commit 98ff5c0
x86/bugs: Avoid AUTO after the select step in the retbleed mitigation
The retbleed select function leaves the mitigation to AUTO in some cases.
Moreover, the update function can also set the mitigation to AUTO. This
is inconsistent with other mitigations and requires explicit handling of
AUTO at the end of update step.
Make sure a mitigation gets selected in the select step, and do not change
it to AUTO in the update step. When no mitigation can be selected leave it
to NONE, which is what AUTO was getting changed to in the end.
Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250611-eibrs-fix-v4-1-5ff86cac6c61@linux.intel.com1 parent e04c78d commit 98ff5c0
1 file changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1247 | 1247 | | |
1248 | 1248 | | |
1249 | 1249 | | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
1250 | 1258 | | |
1251 | 1259 | | |
1252 | 1260 | | |
| |||
1255 | 1263 | | |
1256 | 1264 | | |
1257 | 1265 | | |
1258 | | - | |
1259 | | - | |
1260 | | - | |
1261 | 1266 | | |
1262 | 1267 | | |
1263 | 1268 | | |
| |||
1268 | 1273 | | |
1269 | 1274 | | |
1270 | 1275 | | |
1271 | | - | |
| 1276 | + | |
1272 | 1277 | | |
1273 | 1278 | | |
1274 | 1279 | | |
| |||
1294 | 1299 | | |
1295 | 1300 | | |
1296 | 1301 | | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | 1302 | | |
1301 | | - | |
| 1303 | + | |
1302 | 1304 | | |
1303 | 1305 | | |
1304 | 1306 | | |
1305 | | - | |
1306 | 1307 | | |
1307 | 1308 | | |
1308 | 1309 | | |
| |||
0 commit comments