[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260204132428.224465-1-p@1g4.org>
Date: Wed, 04 Feb 2026 13:24:46 +0000
From: Paul Moses <p@....org>
To: Victor Nogueira <victor@...atatu.com>, Jamal Hadi Salim <jhs@...atatu.com>, Cong Wang <xiyou.wangcong@...il.com>, Jiri Pirko <jiri@...nulli.us>
Cc: "David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Simon Horman <horms@...nel.org>, netdev@...r.kernel.org, linux-kernel@...r.kernel.org, Paul Moses <p@....org>
Subject: [PATCH net v4 0/1] net/sched: act_gate: protect parameters with RCU on replace
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
Powered by blists - more mailing lists