mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net v5 0/1] net/sched: act_gate: snapshot parameters with RCU on replace
@ 2026-02-05 15:10 Paul Moses
  2026-02-05 15:10 ` [PATCH net v5 1/1] " Paul Moses
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Moses @ 2026-02-05 15:10 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 v4:
- Drop the gate_clockid_to_offset helper, validate clockid once, and set
  tk_offset in one place.
- Seed missing attrs from the old params when entries are replaced
- Reimplemented the timer cancel from RCU snapshot and cancel before taking tcf_lock.
- Reuse a single protected deref under tcf_lock
- Compare old/new values directly in gate_timer_needs_cancel()
- Cleanup no longer assumes rtnl_lock

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         | 266 ++++++++++++++++++++++++++---------
 2 files changed, 228 insertions(+), 71 deletions(-)

-- 
2.52.GIT


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

end of thread, other threads:[~2026-02-12 14:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-05 15:10 [PATCH net v5 0/1] net/sched: act_gate: snapshot parameters with RCU on replace Paul Moses
2026-02-05 15:10 ` [PATCH net v5 1/1] " Paul Moses
2026-02-06 10:36   ` Victor Nogueira
2026-02-12 12:17     ` Paul Moses
2026-02-12 14:59       ` Victor Nogueira

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

all inboxes | Powered by JetHome®