From: Paolo Abeni <pabeni@redhat.com>
To: Jamal Hadi Salim <jhs@mojatatu.com>, netdev@vger.kernel.org
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
horms@kernel.org, jiri@resnulli.us, victor@mojatatu.com
Subject: Re: [PATCH net] net/sched: sch_teql: move rcu_read_lock()/spin_lock() from _bh variants
Date: Fri, 3 Jul 2026 16:01:24 +0200 [thread overview]
Message-ID: <819d8e02-49ff-45aa-9eb1-25a631cd6ba0@redhat.com> (raw)
In-Reply-To: <20260630150922.238714-1-jhs@mojatatu.com>
On 6/30/26 5:09 PM, Jamal Hadi Salim wrote:
> This is a followup based on sashiko comments [1] on commit e5b811fe7931
> ("net/sched: sch_teql: Introduce slaves_lock to avoid race condition and UAF")
>
> Use plain rcu_read_lock()/spin_lock() in teql_master_xmit() instead of the
> _bh variants, since ndo_start_xmit is already invoked with BH disabled
> by the core stack and the _bh primitives can warn in_hardirq() when xmit
> is reached through netpoll or a softirq xmit path with hard IRQs disabled.
>
> Moves rcu_read_lock() after restart: label + adds rcu_read_unlock() before
> goto restart (fixes the unbounded RCU hold across retries)
>
> [1] https://sashiko.dev/#/patchset/20260628111229.669751-1-jhs%40mojatatu.com
I'm adding a formal:
Fixes: commit e5b811fe7931 ("net/sched: sch_teql: Introduce slaves_lock to avoid race condition and UAF")
to try to avoid backports of the latter without this one.
/P
next prev parent reply other threads:[~2026-07-03 14:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 15:09 [PATCH net] net/sched: sch_teql: move rcu_read_lock()/spin_lock() from _bh variants Jamal Hadi Salim
2026-07-03 14:01 ` Paolo Abeni [this message]
2026-07-03 14:10 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=819d8e02-49ff-45aa-9eb1-25a631cd6ba0@redhat.com \
--to=pabeni@redhat.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=victor@mojatatu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox