Re: [PATCH] powerpc64/ftrace: fix clobbered r15 during livepatching

2025-04-19 Thread Naveen N Rao
On Thu, Apr 17, 2025 at 12:42:27AM +0530, Hari Bathini wrote: > While r15 is clobbered always with PPC_FTRACE_OUT_OF_LINE, it is > not restored in livepatch sequence leading to not so obvious fails > like below: > > BUG: Unable to handle kernel data access on write at 0xc00f9078 > Faul

Re: [PATCH v2] powerpc64/bpf: fix JIT code size calculation of bpf trampoline

2025-04-19 Thread Naveen N Rao
On Thu, Apr 17, 2025 at 01:10:37AM +0530, Hari Bathini wrote: > arch_bpf_trampoline_size() provides JIT size of the BPF trampoline > before the buffer for JIT'ing it is allocated. The total number of > instructions emitted for BPF trampoline JIT code depends on where > the final image is located. S