public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v4 0/1] net/sched: act_gate: protect parameters with RCU on replace
@ 2026-02-04 13:24 Paul Moses
  2026-02-04 13:24 ` [PATCH net v4 1/1] " Paul Moses
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Moses @ 2026-02-04 13:24 UTC (permalink / raw)
  To: Victor Nogueira, Jamal Hadi Salim, Cong Wang, Jiri Pirko
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman, netdev, linux-kernel, Paul Moses

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-05 13:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-04 13:24 [PATCH net v4 0/1] net/sched: act_gate: protect parameters with RCU on replace Paul Moses
2026-02-04 13:24 ` [PATCH net v4 1/1] " Paul Moses
2026-02-05 13:24   ` Victor Nogueira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox