Re: [PATCH bpf-next v3] net: Fix RCU usage in task_cls_state() for BPF programs

From: patchwork-bot+netdevbpf
Date: Wed Jun 11 2025 - 15:40:41 EST


Hello:

This patch was applied to bpf/bpf-next.git (net)
by Daniel Borkmann <daniel@xxxxxxxxxxxxx>:

On Wed, 11 Jun 2025 17:20:43 +0000 you wrote:
> The commit ee971630f20f ("bpf: Allow some trace helpers for all prog
> types") made bpf_get_cgroup_classid_curr helper available to all BPF
> program types, not just networking programs.
>
> This helper calls __task_get_classid() which internally calls
> task_cls_state() requiring rcu_read_lock_bh_held(). This works in
> networking/tc context where RCU BH is held, but triggers an RCU
> warning when called from other contexts like BPF syscall programs that
> run under rcu_read_lock_trace():
>
> [...]

Here is the summary with links:
- [bpf-next,v3] net: Fix RCU usage in task_cls_state() for BPF programs
https://git.kernel.org/bpf/bpf-next/c/7f12c3385048

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html