Rewrite x86/ftrace to use text_poke (and more)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest16 patches 53 repliesIn review
- v36 patches 82 repliesSuperseded
- v13 patches 56 repliesSuperseded
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | x86/alternatives: Teach text_poke_bp() to emulate instructionsarch/ arch/ arch/ +1 more | +130 | 0 replies | |
| 2/16 | x86/alternatives: Update int3_emulate_push() commentarch/ | +3 | 0 replies | |
| 3/16 | x86/alternatives,jump_label: Provide better text_poke() batching interfacearch/ arch/ arch/ | +96 | 2 replies | |
| 4/16 | x86/alternatives: Add and use text_gen_insn() helperarch/ arch/ arch/ +1 more | +50 | 0 replies | |
| 5/16 | x86/ftrace: Use text_poke()arch/ arch/ arch/ +1 more | +133 | 0 replies | |
| 6/16 | x86/mm: Remove set_kernel_text_r[ow]()arch/ arch/ arch/ | +0 | 0 replies | |
| 7/16 | x86/alternative: Add text_opcode_size()arch/ arch/ | +32 | 0 replies | |
| 8/16 | x86/ftrace: Use text_gen_insn()arch/ arch/ arch/ | +31 | 0 replies | |
| 9/16 | x86/alternative: Remove text_poke_loc::lenarch/ | +7 | 2 replies | |
| 10/16 | x86/alternative: Shrink text_poke_locarch/ | +14 | 3 replies | |
| 11/16 | x86/kprobes: Convert to text-patching.harch/ arch/ arch/ +1 more | +37 | 1 reply | |
| 12/16 | x86/kprobes: Fix orderingarch/ arch/ arch/ +1 more | +15 | 2 replies | |
| 13/16 | arm/ftrace: Use __patch_text_real()arch/ | +8 | 5 replies | |
| 14/16 | module: Remove set_all_modules_text_*()arch/ include/ kernel/ | +0 | 0 replies | |
| 15/16 | module: Move where we mark modules RO,Xkernel/ | +4 | 35 replies | |
| 16/16 | ftrace: Merge ftrace_module_{init,enable}()include/ kernel/ kernel/ | +49 | 1 reply |
Reviews trailers per patch
4 of 16 patches have a Reviewed-by or Acked-by.
| Patch | Masami Hiramatsu | Daniel Bristot de Oliveira |
|---|---|---|
| 1/16 | R-b | R-b |
| 2/16 | ||
| 3/16 | R-b | R-b |
| 4/16 | ||
| 5/16 | ||
| 6/16 | ||
| 7/16 | ||
| 8/16 | ||
| 9/16 | ||
| 10/16 | ||
| 11/16 | A-b | |
| 12/16 | A-b | |
| 13/16 | ||
| 14/16 | ||
| 15/16 | ||
| 16/16 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 00/16] Rewrite x86/ftrace to use text_poke (and more)
Ftrace was one of the last W^X violators (and KLP it seems). These here patches move it over to the generic text_poke() interface and thereby get rid of this oddity.
The first 6 or so patches are more or less the same as in v3, except it has the bugs fixed that Steve found:
- boot time function tracing works
- module loading with function tracing works
Then there's 10 new patches, that go all over the place, mostly inspired by staring at code touched by the first 6. That is, there's further ftrace and kprobes cleanups, as well fixes for various issues.
In the end, it will have removed the horrible set_all_modules_text_*() interface and reduced the ftrace module loading to a single callback (again).
The ARM patch is compiled only, I would be much obliged if someone could test that.