objtool/x86: noinstr vs PARAVIRT
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
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/24 | x86/xen: Mark cpu_bringup_and_idle() as dead_end_functiontools/ | +1 | 8 replies | |
| 2/24 | objtool: Introduce CFI hashtools/ tools/ tools/ +2 more | +154 | 7 replies | |
| 3/24 | objtool: Handle __sanitize_cov*() tail callstools/ tools/ tools/ | +100 | 7 replies | |
| 4/24 | x86/kvm: Always inline sev_*guest()arch/ | +3 | 0 replies | |
| 5/24 | x86/kvm: Always inline vmload() / vmsave()arch/ | +2 | 0 replies | |
| 6/24 | x86: Always inline context_tracking_guest_enter()include/ | +1 | 5 replies | |
| 7/24 | x86/kvm: Always inline to_svm()arch/ | +1 | 0 replies | |
| 8/24 | x86/kvm: Always inline evmcs_write64()arch/ | +2 | 0 replies | |
| 9/24 | x86: Always inline ip_within_syscall_gap()arch/ | +1 | 0 replies | |
| 10/24 | x86/sev: Fix noinstr for vc_ghcb_invalidate()arch/ | +1 | 0 replies | |
| 11/24 | locking/lockdep: Avoid RCU-induced noinstr failkernel/ | +1 | 0 replies | |
| 12/24 | x86/paravirt: Mark arch_local_irq_*() __always_inlinearch/ | +4 | 1 reply | |
| 13/24 | x86/paravirt: Use PVOP_* for paravirt callsarch/ | +4 | 1 reply | |
| 14/24 | x86/xen: Make read_cr2() noinstrarch/ arch/ arch/ | +9 | 1 reply | |
| 15/24 | x86/xen: Make write_cr2() noinstrarch/ arch/ arch/ | +9 | 1 reply | |
| 16/24 | x86/xen: Make get_debugreg() noinstrarch/ arch/ arch/ +1 more | +9 | 1 reply | |
| 17/24 | x86/xen: Make set_debugreg() noinstrarch/ arch/ arch/ +1 more | +9 | 1 reply | |
| 18/24 | x86/xen: Make save_fl() noinstrarch/ arch/ arch/ +1 more | +25 | 1 reply | |
| 19/24 | x86/xen: Make hypercall_page noinstrarch/ | +1 | 1 reply | |
| 20/24 | x86/xen: Make irq_enable() noinstrarch/ arch/ arch/ | +36 | 1 reply | |
| 21/24 | x86/xen: Make irq_disable() noinstrarch/ arch/ arch/ | +9 | 1 reply | |
| 22/24 | x86/xen: Mark xen_force_evtchn_callback() noinstrarch/ arch/ | +2 | 1 reply | |
| 23/24 | x86/xen: Rework the xen_{cpu,irq,mmu}_ops[] arraysarch/ arch/ arch/ | +91 | 1 reply | |
| 24/24 | objtool: Support pv_opsindirect calls for noinstrlib/ tools/ tools/ +4 more | +208 | 0 replies |
Reviews trailers per patch
14 of 24 patches have a Reviewed-by or Acked-by.
| Patch | Juergen Gross | Marco Elver | Miroslav Benes |
|---|---|---|---|
| 1/24 | R-b R-b | R-b | |
| 2/24 | |||
| 3/24 | A-b | ||
| 4/24 | |||
| 5/24 | |||
| 6/24 | |||
| 7/24 | |||
| 8/24 | |||
| 9/24 | |||
| 10/24 | |||
| 11/24 | |||
| 12/24 | R-b | ||
| 13/24 | R-b | ||
| 14/24 | R-b | ||
| 15/24 | R-b | ||
| 16/24 | R-b | ||
| 17/24 | R-b | ||
| 18/24 | R-b | ||
| 19/24 | R-b | ||
| 20/24 | R-b | ||
| 21/24 | R-b | ||
| 22/24 | R-b | ||
| 23/24 | R-b | ||
| 24/24 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v2 00/24] objtool/x86: noinstr vs PARAVIRT
Hi,
Per long standing request from Thomas, this makes the noinstr validation work with PARAVIRT=y.
It isn't exactly pretty, but it does work.
With all this on top of tip/master (which includes some of the previous round), all (*) the robots seem to get is endless garbage like:
vmlinux.o: warning: objtool: __rdgsbase_inactive()+0x24: call to ftrace_likely_update() leaves .noinstr.text section
And my secret plan is to pull the KPTI CR3 swizzling into C such that all that will insta explode and become unfixable.
Steve, can I please delete TRACE_BRANCH_PROFILING and PROFILE_ALL_BRANCHES already?
(*) there were also a few reports from 0day running out of memory.