Re: [PATCH net] net/sched: sch_cake: use rcu_dereference_bh() in the cake_mq sync loop
From: patchwork-bot+netdevbpf
Date: Sun Nov 29 2026 - 22:50:17 EST
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@xxxxxxxxxx>:
On Tue, 24 Nov 2026 13:57:24 +0900 you wrote:
> cake_dequeue() reads the other cake_mq sub-qdiscs with rcu_dereference(),
> but it runs from __qdisc_run() under rcu_read_lock_bh() or in softirq
> context, not under rcu_read_lock(), so lockdep warns:
>
> WARNING: suspicious RCU usage
> net/sched/sch_cake.c:2039 suspicious rcu_dereference_check() usage!
> 2 locks held by test/114:
> #0: ffffffff88b2ca80 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit (net/core/dev.c:5014)
> #1: ff11000013ec8170 (&sch->root_lock_key){+...}-{3:3}, at: __dev_queue_xmit (net/core/dev.c:5058)
> Call Trace:
> cake_dequeue (net/sched/sch_cake.c:2039)
> __qdisc_run (net/sched/sch_generic.c:359)
> __dev_queue_xmit (net/core/dev.c:4502)
> packet_sendmsg (net/packet/af_packet.c:3157)
>
> [...]
Here is the summary with links:
- [net] net/sched: sch_cake: use rcu_dereference_bh() in the cake_mq sync loop
https://git.kernel.org/netdev/net/c/8c9f86c2f55f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html