This series addresses the crash reported by Qian Cai on ppc64le with -mprofile-kernel here: https://lore.kernel.org/r/15ac5b0e-a221-4b8c-9039-fa96b8ef7...@lca.pw
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 -- 2.25.1