public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v6 0/1] net/sched: act_gate: snapshot parameters with RCU on replace
@ 2026-02-13 11:38 Paul Moses
  2026-02-13 11:39 ` [PATCH net v6 1/1] " Paul Moses
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Moses @ 2026-02-13 11:38 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 v5:
- Reset stale err before optional old-entry copy on REPLACE
- Centralize goto_ch cleanup at release_idr for init error unwinding
- Snapshot replace defaults from old params once 
- Drop redundant early clockid pre-validation and remove clockid_provided
- Resolve clockid once into tk_offset and pass clockid/tk_offset as scalars
- Deduplicate init error cleanup by falling through shared
  err_free/release_idr
- Deduplicate empty entry list rejection on create into a single check
- Rename lock-only accessor helper to tcf_gate_params_locked()
- Simplify entry-list handling by deriving use_old_entries from attributes
- Remove replace-path defensive old_p NULL handling
- Keep helper name gate_setup_timer()
- Align cleanup dereference with act_vlan using
  rcu_dereference_protected(gact->param, 1) and call_rcu()
- Switch dump to lockless RCU read-side access and use
  READ_ONCE(gact->tcf_action)
- Compute need_cancel only on replace and keep
  gate_timer_needs_cancel() focused

Paul Moses (1):
  net/sched: act_gate: snapshot parameters with RCU on replace

 include/net/tc_act/tc_gate.h |  33 ++++-
 net/sched/act_gate.c         | 275 ++++++++++++++++++++++++-----------
 2 files changed, 219 insertions(+), 89 deletions(-)

-- 
2.53.0


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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-13 11:38 [PATCH net v6 0/1] net/sched: act_gate: snapshot parameters with RCU on replace Paul Moses
2026-02-13 11:39 ` [PATCH net v6 1/1] " Paul Moses
2026-02-13 15:55   ` [net,v6,1/1] " Simon Horman
2026-02-13 17:37     ` Paul Moses
2026-02-18 13:32       ` Jamal Hadi Salim
2026-02-15 20:45   ` [PATCH net v6 1/1] " Victor Nogueira
2026-02-15 23:59     ` Paul Moses
2026-02-16 11:45       ` Victor Nogueira

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