Re: [PATCH] bpf: Fix refcount check in check_struct_ops_btf_id()
From: Kumar Kartikeya Dwivedi
Date: Sat Mar 21 2026 - 16:24:55 EST
On Fri, 20 Mar 2026 at 16:47, Keisuke Nishimura
<keisuke.nishimura@xxxxxxxx> wrote:
>
> The current implementation only checks whether the first argument is
> refcounted. Fix this by iterating over all arguments.
>
> Signed-off-by: Keisuke Nishimura <keisuke.nishimura@xxxxxxxx>
> Fixes: 38f1e66abd184 ("bpf: Do not allow tail call in strcut_ops program with __ref argument")
> ---
LGTM, but please respin with a selftest.
The expectation is that it should fail when the fix is missing, and
pass when it is applied.
pw-bot: cr