Skip to content

powerpc/module_64: Fix _mcount() stub

Naveen N. Rao linuxppc-dev 1 version Applied

Status from this message: Applied to powerpc/next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3powerpc/module_64: Consolidate ftrace codearch/powerpc/include/asm/module.h arch/powerpc/kernel/module_64.c+33 -390 replies
2/3powerpc/module_64: Simplify check for -mprofile-kernel ftrace relocationsarch/powerpc/kernel/module_64.c+4 -140 replies
3/3powerpc/module_64: Use special stub for _mcount() with -mprofile-kernelarch/powerpc/kernel/module_64.c+104 -1181 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchQian Cai
1/3
2/3
3/3T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] powerpc/module_64: Fix _mcount() stub

This series addresses the crash reported by Qian Cai on ppc64le with -mprofile-kernel here:
https://lore.kernel.org/r/[email protected]

While fixing patch_instruction() should address the crash, we should still change the default stub we setup for _mcount() for cases where a kernel is built without ftrace.

- Naveen

Naveen N. Rao (3):
powerpc/module_64: Consolidate ftrace code powerpc/module_64: Simplify check for -mprofile-kernel ftrace
relocations
powerpc/module_64: Use special stub for _mcount() with
-mprofile-kernel

 arch/powerpc/include/asm/module.h |   3 -
 arch/powerpc/kernel/module_64.c   | 281 ++++++++++++++----------------
 2 files changed, 127 insertions(+), 157 deletions(-)

base-commit: a9aa21d05c33c556e48c5062b6632a9b94906570

Signature · 1 line
2.25.1