RFC x86: Kernel IBT beginnings
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest6 patches 39 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | x86: Annotate _THIS_IP_arch/ include/ | +16 | 3 replies | |
| 2/6 | x86: Base IBT bitsarch/ arch/ arch/ | +54 | 1 reply | |
| 3/6 | x86: Add ENDBR to IRET-to-Selfarch/ arch/ | +4 | 2 replies | |
| 4/6 | objtool: Read the _THIS_IP_ hintstools/ tools/ | +37 | 0 replies | |
| 5/6 | x86: Sprinkle ENDBR dustarch/ arch/ arch/ +9 more | +79 | 3 replies | |
| 6/6 | objtool: Add IBT validation / fixupstools/ tools/ tools/ +4 more | +249 | 26 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC][PATCH 0/6] x86: Kernel IBT beginnings
Hi,
So I hacked this up on Friday night / Saturday morning and spend all of today cleaning it up.
It is the very bare beginnings of kernel IBT support. Since I'm lacking any sort of actual hardware it even lacks fun things like code to write to the MSRs to enable the IBT tracker etc..
However, it should have most of the ENDBR instructions in the right place -- I hope :-) That said; I would *really* like compiler support for this stuff to be improved, the amount of fixups done by objtool is obscene.
The end result still boots on ancient x86-64 hardware, for whatever that's worth (when built with the below turd included that is).
Enjoy!
---
scripts/link-vmlinux.sh +5 -0
@@ -142,6 +142,11 @@ objtool_link() info OBJTOOL ${1} tools/objtool/objtool ${objtoolcmd} ${objtoolopt} ${1} fi + + if [ "${CONFIG_X86_IBT}" = "y" ]; then + # XXX less ugleh + tools/objtool/objtool check --no-fp --retpoline --uaccess --vmlinux --duplicate --ibt --ibt-fix-direct --ibt-seal ${1} + fi } # Link of vmlinux