Skip to content

Build ppc64le kernel using ABIv2, supplemental patches

Anton Blanchard linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7powerpc: Add _GLOBAL_TOC for ABIv2 assembly functions exported to modulesarch/powerpc/include/asm/ppc_asm.h arch/powerpc/lib/copyuser_64.S arch/powerpc/lib/memcpy_64.S+14 -20 replies
2/7powerpc: ftrace_caller, _mcount is exported to modules so needs _GLOBAL_TOC()arch/powerpc/kernel/entry_64.S+2 -50 replies
3/7powerpc/kprobes: Fix ABIv2 issues with kprobe_lookup_namearch/powerpc/include/asm/kprobes.h+3 -20 replies
4/7powerpc/modules: Create is_module_trampoline()arch/powerpc/include/asm/module.h arch/powerpc/kernel/module_64.c+47 -50 replies
5/7powerpc/modules: Create module_trampoline_target()arch/powerpc/include/asm/module.h arch/powerpc/kernel/module_64.c+31 -00 replies
6/7powerpc/ftrace: Use module loader helpers to parse trampolinesarch/powerpc/kernel/ftrace.c+20 -771 reply
7/7powerpc/ftrace: Fix ABIv2 issues with __ftrace_make_callarch/powerpc/kernel/ftrace.c+19 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Build ppc64le kernel using ABIv2, supplemental patches

These patches apply against my last series and fix all known ABIv2 issues.

To stress the module loader and dynamic ftrace code, I built an allmodconfig kernel and inserted every module I could. I found a bunch of bugs in the modules themselves, but in the end I managed to get quite a few modules to load:

# cat /proc/modules | wc -l
3830

It survived a fair bit of poking (enabling/disabling function tracers etc).

Anton Blanchard (7):
powerpc: Add _GLOBAL_TOC for ABIv2 assembly functions exported to
modules
powerpc: ftrace_caller, _mcount is exported to modules so needs

    _GLOBAL_TOC()

powerpc/kprobes: Fix ABIv2 issues with kprobe_lookup_name powerpc/modules: Create is_module_trampoline() powerpc/modules: Create module_trampoline_target() powerpc/ftrace: Use module loader helpers to parse trampolines powerpc/ftrace: Fix ABIv2 issues with __ftrace_make_call

 arch/powerpc/include/asm/kprobes.h |   5 +-
 arch/powerpc/include/asm/module.h  |   3 +
 arch/powerpc/include/asm/ppc_asm.h |  12 ++++
 arch/powerpc/kernel/entry_64.S     |   7 +-
 arch/powerpc/kernel/ftrace.c       | 137 +++++++++++--------------------------
 arch/powerpc/kernel/module_64.c    |  80 ++++++++++++++++++++--
 arch/powerpc/lib/copyuser_64.S     |   2 +-
 arch/powerpc/lib/memcpy_64.S       |   2 +-
 8 files changed, 136 insertions(+), 112 deletions(-)
Signature · 1 line
1.8.3.2