objtool: vmlinux.o and noinstr validation
Status from this message: The following commit has been merged into the objtool/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest17 patches 14 repliesApplied
- v413 patches 19 repliesSuperseded
- v326 patches 40 repliesApplied
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 19 patches | 15 replies | Superseded | |
| v1 RFC | 16 patches | 32 replies | Superseded |
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | objtool: Support multiple stack_op per instructiontools/ tools/ tools/ +1 more | +62 | 0 replies | |
| 2/17 | objtool: Better handle IRETarch/ tools/ tools/ +1 more | +29 | 7 replies | |
| 3/17 | objtool: Introduce HINT_RET_OFFSETarch/ arch/ tools/ +2 more | +31 | 0 replies | |
| 4/17 | x86,ftrace: Fix ftrace_regs_caller() unwindarch/ arch/ | +25 | 5 replies | |
| 5/17 | x86,ftrace: Use SIZEOF_PTREGSarch/ | +2 | 0 replies | |
| 6/17 | x86,ftrace: Shrink ftrace_regs_caller() by one bytearch/ | +2 | 0 replies | |
| 7/17 | objtool: Remove SAVE/RESTORE hintsarch/ arch/ tools/ +2 more | +7 | 0 replies | |
| 8/17 | objtool: Rename struct cfi_statetools/ tools/ tools/ +1 more | +4 | 0 replies | |
| 9/17 | objtool: Fix !CFI insn_state propagationtools/ tools/ tools/ +1 more | +157 | 0 replies | |
| 10/17 | objtool: Implement noinstr validationtools/ tools/ tools/ +2 more | +112 | 0 replies | |
| 11/17 | objtool: Optimize !vmlinux.o againtools/ tools/ tools/ | +52 | 0 replies | |
| 12/17 | objtool: Use sec_offset_hash() for insn_hashtools/ | +3 | 0 replies | |
| 13/17 | kbuild/objtool: Add objtool-vmlinux.o passlib/ scripts/ | +29 | 0 replies | |
| 14/17 | objtool: Avoid iterating !text section symbolstools/ | +5 | 0 replies | |
| 15/17 | objtool: Rearrange validate_section()tools/ | +29 | 0 replies | |
| 16/17 | objtool: Add STT_NOTYPE noinstr validationtools/ | +30 | 0 replies | |
| 17/17 | objtool: Also consider .entry.text as noinstrtools/ | +12 | 0 replies |
Reviews trailers per patch
9 of 17 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Josh Poimboeuf | Miroslav Benes | Alexandre Chartre | Steven Rostedt (VMware) |
|---|---|---|---|---|
| Series | R-b | R-b | ||
| 1/17 | ||||
| 2/17 | ||||
| 3/17 | ||||
| 4/17 | R-b | |||
| 5/17 | A-b | |||
| 6/17 | ||||
| 7/17 | ||||
| 8/17 | A-b | |||
| 9/17 | A-b | |||
| 10/17 | A-b | |||
| 11/17 | A-b | |||
| 12/17 | A-b | |||
| 13/17 | ||||
| 14/17 | A-b | |||
| 15/17 | A-b | |||
| 16/17 | ||||
| 17/17 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v5 00/17] objtool: vmlinux.o and noinstr validation
As should be familiar by now; these patches implement the noinstr (no-instrument) validation in objtool as requested by Thomas, to ensure critical code (entry for now, idle later) run no unexpected code.
Functions are marked with: noinstr, which implies notrace, noinline and sticks things in the .noinstr.text section. Such functions can then use instr_begin() and instr_end() to allow calls to code outside of this section in sanctioned areas.
On the way of getting there, it also fixes the x86/ftrace trampiline ORC unwind.