RFC Fix up the recent SRSO patches
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest17 patches 62 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | x86/alternative: Unconditional custom return thunkarch/ arch/ | +0 | 2 replies | |
| 2/17 | x86/cpu: Clean up SRSO return thunk messarch/ arch/ arch/ +1 more | +36 | 8 replies | |
| 3/17 | x86/cpu: Make srso_untrain_ret consistentarch/ | +1 | 1 reply | |
| 4/17 | objtool/x86: Fix SRSO messtools/ tools/ | +2 | 5 replies | |
| 5/17 | x86/cpu: Cleanup the untrain messarch/ arch/ | +12 | 4 replies | |
| 6/17 | x86/cpu: Add SRSO untrain to retbleed=arch/ | +76 | 16 replies | |
| 7/17 | x86/cpu/kvm: Provide UNTRAIN_RET_VMarch/ arch/ | +13 | 6 replies | |
| 8/17 | x86/cpu: Add IBPB on VMEXIT to retbleed=arch/ | +16 | 0 replies | |
| 9/17 | x86: Remove CONFIG_CPU_SRSOarch/ arch/ arch/ +1 more | +24 | 1 reply | |
| 10/17 | x86: Remove CPU_IBPB_ENTRYarch/ arch/ arch/ | +8 | 0 replies | |
| 11/17 | x86/cpu: Remove all SRSO interface nonsensearch/ drivers/ include/ | +10 | 6 replies | |
| 12/17 | x86/cpu: Rename original retbleed return thunkarch/ arch/ arch/ +2 more | +22 | 8 replies | |
| 13/17 | objtool/x86: Add arch_is_offset_insn()tools/ tools/ tools/ +1 more | +18 | 2 replies | |
| 14/17 | objtool: Add comments to the arch_is_$foo() magic symbolstools/ | +12 | 0 replies | |
| 15/17 | x86/cpu: Rename srso_(.*)_alias to srso_alias_\1arch/ arch/ arch/ | +17 | 0 replies | |
| 16/17 | x86/alternatives: Simplify ALTERNATIVE_n()arch/ arch/ tools/ +1 more | +100 | 0 replies | |
| 17/17 | x86/cpu: Use fancy alternatives to get rid of entry_untrain_ret()arch/ arch/ | +18 | 0 replies |
Reviews trailers per patch
2 of 17 patches have a Reviewed-by or Acked-by.
| Patch | Nikolay Borisov |
|---|---|
| 1/17 | R-b |
| 2/17 | R-b |
| 3/17 | |
| 4/17 | |
| 5/17 | |
| 6/17 | |
| 7/17 | |
| 8/17 | |
| 9/17 | |
| 10/17 | |
| 11/17 | |
| 12/17 | |
| 13/17 | |
| 14/17 | |
| 15/17 | |
| 16/17 | |
| 17/17 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC][PATCH 00/17] Fix up the recent SRSO patches
Since I wasn't invited to the party (even though I did retbleed), I get to clean things up afterwards :/
Anyway, this here overhauls the SRSO patches in a big way.
I claim that AMD retbleed (also called Speculative-Type-Confusion -- not to be confused with Intel retbleed, which is an entirely different bug) is fundamentally the same as this SRSO -- which is also caused by STC. And the mitigations are so similar they should all be controlled from a single spot and not conflated like they are now.
As such, at the end of the ride the new kernel command line and srso sysfs files are no more and all we're left with is a few extra retbleed options.
Aside of that; this deals with a few implementation issues -- but not all known issues. Josh and Andrew are telling me there's a problem when running inside virt due to how this checks the microcode. I'm hoping either of those two gents will add a patch to address this.