x86/ibt: FineIBT-BHI
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 45 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | x86/cfi: Wreck things...arch/ arch/ arch/ +10 more | +48 | 3 replies | |
| 2/14 | x86/boot: Mark start_secondary() with __noendbrarch/ include/ | +12 | 0 replies | |
| 3/14 | x86/alternative: Simplify callthunk patchingarch/ arch/ arch/ +3 more | +13 | 1 reply | |
| 4/14 | objtool/x86: Add .tail_call_sitesarch/ tools/ tools/ +1 more | +58 | 3 replies | |
| 5/14 | objtool: Rename the skylake hack to --direct-callscripts/ tools/ tools/ +1 more | +13 | 0 replies | |
| 6/14 | x86/traps: Prepare for ENDBR poison UD1 usagearch/ arch/ arch/ +1 more | +90 | 0 replies | |
| 7/14 | x86/ibt: Clean up is_endbr()arch/ arch/ arch/ +3 more | +22 | 7 replies | |
| 8/14 | x86/ibt: Clean up poison_endbr()arch/ | +35 | 0 replies | |
| 9/14 | x86/ibt: Implement IBT+arch/ arch/ arch/ +7 more | +144 | 6 replies | |
| 10/14 | x86/early_printk: Harden early_serialarch/ | +25 | 0 replies | |
| 11/14 | llvm: kCFI pointer stuffllvm/ llvm/ | +39 | 7 replies | |
| 12/14 | x86: Hacks for hacked up llvmarch/ arch/ | +6 | 0 replies | |
| 13/14 | x86: BHI stubsarch/ arch/ arch/ +1 more | +708 | 15 replies | |
| 14/14 | x86/fineibt: Add FineIBT+BHI mitigationarch/ arch/ arch/ +1 more | +98 | 3 replies |
Reviews trailers per patch
1 of 14 patches has a Reviewed-by or Acked-by.
| Patch | Alexei Starovoitov | Andrii Nakryiko |
|---|---|---|
| 1/14 | ||
| 2/14 | ||
| 3/14 | ||
| 4/14 | ||
| 5/14 | ||
| 6/14 | ||
| 7/14 | A-b | A-b |
| 8/14 | ||
| 9/14 | ||
| 10/14 | ||
| 11/14 | ||
| 12/14 | ||
| 13/14 | ||
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/14] x86/ibt: FineIBT-BHI
Hi all,
Since I got back from Vienna sick as a dog, I figured I'd do something simple like rebase some previous work...
The thing I picked was FineIBT-BHI, an alternative mitigation for the native-BHI issue, something that I implemented somewhere late last year while the whole thing was still embargoed.
Specifically the paper mentions that FineIBT should avoid the problem, but showed that the IBT implementation of current chips falls somewhat short of the desired semantics and there's still a hole.
This here scheme (by Alyssa?) closes the hole and performs favourably (Scott?).
The major stumbling block is that it relies on a compiler extension of the kCFI infrastructure -- and while I did me a llvm POC, a real compiler person should very much take the idea and do it right (Joao?).
Notably, GCC doesn't currently implement even basic kCFI:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107048
https://lore.kernel.org/lkml/[email protected]/
(an interested GCC person wanting to help finish that patchset and add x86-64 support would be much appreciated)
Anyway.... obviously this wasn't at all simple, nothing ever is.
The first many (10) patches are massaging/hardening the existing (Fine)IBT implementation and all that should be mergable without fancy new compiler stuff.
The last few (4) patches, starting with the llvm patch, is the actual FineIBT-BHI mitigation.
The kernel patches are also available at:
git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/ibt
git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/fineibt-bhi
The whole series boots and builds the next kernel on my ADL -- using the custom LLVM.