From: Paul Moses <p@1g4.org>
To: Victor Nogueira <victor@mojatatu.com>,
Jamal Hadi Salim <jhs@mojatatu.com>,
Cong Wang <xiyou.wangcong@gmail.com>,
Jiri Pirko <jiri@resnulli.us>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Paul Moses <p@1g4.org>
Subject: [PATCH net v4 0/1] net/sched: act_gate: protect parameters with RCU on replace
Date: Wed, 04 Feb 2026 13:24:46 +0000 [thread overview]
Message-ID: <20260204132428.224465-1-p@1g4.org> (raw)
This series fixes a schedule lifetime race in `act_gate` between the
control-plane replace path and the running hrtimer callback (gate_timer_func).
Changes since v3:
- Drop and fold the previous patches into a single patch
- Move hrtimer cancellation before rcu_replace_pointer() during cleanup
- Drop the NULL guard
- Treat an explicit empty entry list on REPLACE the same as an omitted entry
list (preserve the existing schedule). CREATE rejects empty or missing
entry lists.
- Split the timer cancel decision from timer setup, cancel outside tcf_lock,
and use hrtimer_active() in gate_start_timer()
Paul Moses (1):
net/sched: act_gate: protect parameters with RCU on replace
include/net/tc_act/tc_gate.h | 29 +++-
net/sched/act_gate.c | 300 ++++++++++++++++++++++++++---------
2 files changed, 246 insertions(+), 83 deletions(-)
--
2.52.GIT
next reply other threads:[~2026-02-04 13:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-04 13:24 Paul Moses [this message]
2026-02-04 13:24 ` [PATCH net v4 1/1] net/sched: act_gate: protect parameters with RCU on replace Paul Moses
2026-02-05 13:24 ` Victor Nogueira
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=20260204132428.224465-1-p@1g4.org \
--to=p@1g4.org \
--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=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=victor@mojatatu.com \
--cc=xiyou.wangcong@gmail.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