Skip to content

bpf: Fix refcount check in check_struct_ops_btf_id()#11488

Closed
kernel-patches-daemon-bpf[bot] wants to merge 2 commits intobpf-next_basefrom
series/1069983=>bpf-next
Closed

bpf: Fix refcount check in check_struct_ops_btf_id()#11488
kernel-patches-daemon-bpf[bot] wants to merge 2 commits intobpf-next_basefrom
series/1069983=>bpf-next

Conversation

@kernel-patches-daemon-bpf
Copy link
Copy Markdown

Pull request for series with
subject: bpf: Fix refcount check in check_struct_ops_btf_id()
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1069983

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 4b21ea5
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1069983
version: 1

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 4b21ea5
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1069983
version: 1

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 4b21ea5
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1069983
version: 1

@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

Upstream branch: 21337b5
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1069983
version: 1

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@inria.fr>
Fixes: 38f1e66 ("bpf: Do not allow tail call in strcut_ops program with __ref argument")
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Acked-by: Amery Hung <ameryhung@gmail.com>
@kernel-patches-daemon-bpf
Copy link
Copy Markdown
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1069983 expired. Closing PR.

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf Bot deleted the series/1069983=>bpf-next branch March 23, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant