Rewrite x86/ftrace to use text_poke (and more)
Status from this message: The following commit has been merged into the core/kprobes branch of tip:
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | x86/alternatives: Teach text_poke_bp() to emulate instructionsarch/ arch/ arch/ +1 more | +130 | 0 replies | |
| 2/17 | x86/alternatives: Update int3_emulate_push() commentarch/ | +3 | 0 replies | |
| 3/17 | x86/alternatives,jump_label: Provide better text_poke() batching interfacearch/ arch/ arch/ | +96 | 0 replies | |
| 4/17 | x86/alternatives: Add and use text_gen_insn() helperarch/ arch/ arch/ +1 more | +50 | 2 replies | |
| 5/17 | x86/ftrace: Use text_poke()arch/ arch/ arch/ +1 more | +133 | 12 replies | |
| 6/17 | x86/mm: Remove set_kernel_text_r[ow]()arch/ arch/ arch/ | +0 | 0 replies | |
| 7/17 | x86/alternative: Add text_opcode_size()arch/ arch/ | +32 | 0 replies | |
| 8/17 | x86/ftrace: Use text_gen_insn()arch/ arch/ arch/ | +31 | 0 replies | |
| 9/17 | x86/alternative: Remove text_poke_loc::lenarch/ | +7 | 0 replies | |
| 10/17 | x86/alternative: Shrink text_poke_locarch/ | +14 | 0 replies | |
| 11/17 | x86/kprobes: Convert to text-patching.harch/ arch/ arch/ +1 more | +37 | 0 replies | |
| 12/17 | x86/kprobes: Fix orderingarch/ arch/ arch/ +1 more | +15 | 10 replies | |
| 13/17 | arm/ftrace: Use __patch_text_real()arch/ | +8 | 4 replies | |
| 13/17 | arm/ftrace: Use __patch_text()arch/ arch/ | +4 | 8 replies | |
| 14/17 | module: Remove set_all_modules_text_*()arch/ include/ kernel/ | +0 | 0 replies | |
| 15/17 | ftrace: Rework event_create_dir()drivers/ drivers/ drivers/ +18 more | +213 | 1 reply | |
| 16/17 | x86/kprobe: Add comments to arch_{,un}optimize_kprobes()arch/ | +12 | 0 replies | |
| 17/17 | x86/alternative: Use INT3_INSN_SIZEarch/ | +6 | 0 replies |
Reviews trailers per patch
6 of 18 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Masami Hiramatsu | Daniel Bristot de Oliveira | Alexei Starovoitov | Will Deacon | Steven Rostedt (VMware) | Paul E. McKenney | Mathieu Desnoyers | Dmitry Osipenko |
|---|---|---|---|---|---|---|---|---|
| Series | A-b T-b | T-b | ||||||
| 1/17 | R-b | R-b | ||||||
| 2/17 | ||||||||
| 3/17 | R-b | R-b | ||||||
| 4/17 | ||||||||
| 5/17 | R-b A-b | |||||||
| 6/17 | ||||||||
| 7/17 | ||||||||
| 8/17 | ||||||||
| 9/17 | ||||||||
| 10/17 | ||||||||
| 11/17 | A-b | |||||||
| 12/17 | A-b | A-b | R-b | |||||
| 13/17 | T-b T-b | T-b | ||||||
| 13/17 | T-b T-b | T-b | ||||||
| 14/17 | ||||||||
| 15/17 | R-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 8 reviewers.
Cover letter [PATCH -v5 00/17] Rewrite x86/ftrace to use text_poke (and more)
Ftrace is one of the last W^X violators (after this only KLP is left). These patches move it over to the generic text_poke() interface and thereby get rid of this oddity.
The first 14 patches are the same as in the -v4 posting. The last 3 patches are new.
Will, patch 13, arm/ftrace, is unchanged. This is because this way it preserves behaviour, but if you can provide me a tested-by for the simpler variant I can drop that in.
Patch 15 reworks ftrace's event_create_dir(), which ran module code before the module was finished loading (before we even applied jump_labels and all that).
Patch 16 and 17 address minor review feedback.
Ingo, Alexei wants patch #1 for some BPF stuff, can he get that in a topic branch?