Re: [PATCH 3/3] powerpc/module_64: Use special stub for _mcount() with -mprofile-kernel

2020-04-23 Thread Qian Cai
> On Apr 21, 2020, at 1:35 PM, Naveen N. Rao > wrote: > > Since commit c55d7b5e64265f ("powerpc: Remove STRICT_KERNEL_RWX > incompatibility with RELOCATABLE"), powerpc kernels with > -mprofile-kernel can crash in certain scenarios with a trace like below: > >BUG: Unable to handle kernel

[PATCH 3/3] powerpc/module_64: Use special stub for _mcount() with -mprofile-kernel

2020-04-21 Thread Naveen N. Rao
Since commit c55d7b5e64265f ("powerpc: Remove STRICT_KERNEL_RWX incompatibility with RELOCATABLE"), powerpc kernels with -mprofile-kernel can crash in certain scenarios with a trace like below: BUG: Unable to handle kernel instruction fetch (NULL pointer?) Faulting instruction address: 0x0