Re: [PATCH bpf-next v4] bpf: log error code on trampoline unlink failure
From: xu.xin16
Date: Thu Jul 30 2026 - 02:49:39 EST
> >
> > Replace silent WARN_ON_ONCE with WARN_ONCE that prints the actual error
> > code from bpf_trampoline_unlink_prog(). This aids debugging of race
> > conditions during link teardown, while keeping the warning rate limited
> > to avoid log flooding.
> >
> > This will be very helpful for speeding up trouble-shooting of some crash
> > UAF due to bpf_trampoline_unlink_prog failures.
> >
> > No change to unlink behavior.
> >
> > Signed-off-by: Xu Xin <xu.xin16@xxxxxxxxxx>
> > Acked-by: Leon Hwang <leon.hwang@xxxxxxxxx>
>
> Reviewed-by: Emil Tsalapatis <emil@xxxxxxxxxxxxxxx>
>
> The Sashiko concern seems valid, please let me know if you are
> planning on looking into it otherwise I can take a look.
It was discussed in previous thread, but the conclusion seems to be "let it go".
Not sure how to deal with it. Do you have any idea ?