Re: [PATCH bpf] bpf: Keep progs alive until the trampoline image calling them is freed
From: Alexei Starovoitov
Date: Fri Sep 11 2026 - 20:21:53 EST
On Wed, Sep 2, 2026 at 5:48 PM Alexei Starovoitov
<alexei.starovoitov@xxxxxxxxx> wrote:
>
> Let's extend ip_after_call concept.
> Instead of using a single NOP after the call to skip fexit progs
> let's add NOPs in front of every invoke_bpf() including fentry and fmod_ret.
>
> Then on tramp destroy patch all nop-s to jmp epilogue.
>
> llm-s helped me realize that fentry has the same issue.
> fentry prog A can sleep
> while non-sleepable fentry prog B can detach and things will crash.
Florent,
are you planning to respin with the above fix or should I ask my clanker ?