Re: [PATCH bpf] bpf: Keep progs alive until the trampoline image calling them is freed
From: Florent Revest
Date: Sat Sep 12 2026 - 06:05:39 EST
On Sat Sep 12, 2026 at 12:20 AM UTC, Alexei Starovoitov wrote:
> 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 ?
Sorry for the wait, this week was busier than I expected! I just sent v2! :)