Commit dc6306a
x86/srso: Fix vulnerability reporting for missing microcode
The SRSO default safe-ret mitigation is reported as "mitigated" even if
microcode hasn't been updated. That's wrong because userspace may still
be vulnerable to SRSO attacks due to IBPB not flushing branch type
predictions.
Report the safe-ret + !microcode case as vulnerable.
Also report the microcode-only case as vulnerable as it leaves the
kernel open to attacks.
Fixes: fb3bd91 ("x86/srso: Add a Speculative RAS Overflow mitigation")
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/a8a14f97d1b0e03ec255c81637afdf4cf0ae9c99.1693889988.git.jpoimboe@kernel.org1 parent de9f5f7 commit dc6306a
2 files changed
+39
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
54 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
| |||
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
75 | | - | |
| 85 | + | |
76 | 86 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
80 | 90 | | |
81 | 91 | | |
82 | 92 | | |
| |||
129 | 139 | | |
130 | 140 | | |
131 | 141 | | |
132 | | - | |
| 142 | + | |
133 | 143 | | |
134 | 144 | | |
135 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2353 | 2353 | | |
2354 | 2354 | | |
2355 | 2355 | | |
| 2356 | + | |
| 2357 | + | |
2356 | 2358 | | |
2357 | 2359 | | |
2358 | 2360 | | |
| |||
2368 | 2370 | | |
2369 | 2371 | | |
2370 | 2372 | | |
2371 | | - | |
2372 | | - | |
2373 | | - | |
2374 | | - | |
2375 | | - | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
2376 | 2380 | | |
2377 | 2381 | | |
2378 | 2382 | | |
| |||
2409 | 2413 | | |
2410 | 2414 | | |
2411 | 2415 | | |
2412 | | - | |
2413 | | - | |
2414 | | - | |
2415 | | - | |
| 2416 | + | |
2416 | 2417 | | |
2417 | 2418 | | |
2418 | 2419 | | |
| |||
2428 | 2429 | | |
2429 | 2430 | | |
2430 | 2431 | | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
2431 | 2438 | | |
2432 | 2439 | | |
2433 | 2440 | | |
| |||
2457 | 2464 | | |
2458 | 2465 | | |
2459 | 2466 | | |
2460 | | - | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
2461 | 2471 | | |
2462 | 2472 | | |
2463 | 2473 | | |
| |||
2490 | 2500 | | |
2491 | 2501 | | |
2492 | 2502 | | |
2493 | | - | |
| 2503 | + | |
2494 | 2504 | | |
2495 | 2505 | | |
2496 | 2506 | | |
| |||
2701 | 2711 | | |
2702 | 2712 | | |
2703 | 2713 | | |
2704 | | - | |
2705 | | - | |
2706 | | - | |
| 2714 | + | |
2707 | 2715 | | |
2708 | 2716 | | |
2709 | 2717 | | |
| |||
0 commit comments