On Fri, Oct 24, 2025 at 08:47:08PM +0000, Song Liu wrote: > > > > On Oct 24, 2025, at 11:28 AM, Song Liu <[email protected]> wrote: > > > > livepatch and BPF trampoline are two special users of ftrace. livepatch > > uses ftrace with IPMODIFY flag and BPF trampoline uses ftrace direct > > functions. When livepatch and BPF trampoline with fexit programs attach to > > the same kernel function, BPF trampoline needs to call into the patched > > version of the kernel function. > > > > 1/3 and 2/3 of this patchset fix two issues with livepatch + fexit cases, > > one in the register_ftrace_direct path, the other in the > > modify_ftrace_direct path. > > > > 3/3 adds selftests for both cases. > > AI has a good point on this: > > https://github.com/kernel-patches/bpf/pull/10088#issuecomment-3444465504
makes sense, I think it'll make the code easier to read jirka > > > I will wait a bit more for human to chime in before sending v3 with the > suggestion by AI. > > Thanks, > Song >
