public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] net: sched: act_gate: fix update races and infoleak
@ 2026-01-20  0:48 Paul Moses
  2026-01-20  0:48 ` [PATCH 1/2] net/sched: act_gate: fix schedule updates with RCU swap Paul Moses
  2026-01-20  0:48 ` [PATCH 2/2] net/sched: act_gate: zero-initialize netlink dump struct Paul Moses
  0 siblings, 2 replies; 9+ messages in thread
From: Paul Moses @ 2026-01-20  0:48 UTC (permalink / raw)
  To: netdev
  Cc: Jamal Hadi Salim, Cong Wang, Jiri Pirko, David S . Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Simon Horman,
	linux-kernel, Paul Moses

This series fixes act_gate schedule update races by switching to a
prepare-then-swap model with an RCU-protected params pointer, so the
hrtimer/datapath never observe partially updated or freed schedules.
Old params are freed via call_rcu() after the swap.

It also zero-initializes the netlink dump struct to prevent padding
information leaks, and tightens schedule/timing validation to avoid
misprogramming the hrtimer on invalid inputs.

Changes since v1:
- Drop tc-testing changes; no test updates required
- Validation fixes: base/cycle range checks + derived cycle overflow guard
- Fix create/update corner cases: avoid oldp deref on create, publish params
  only after full init, fix partial schedule copy cleanup
- Timer handling: cancel/reprogram only when required
- Keep dump struct zero-init without unrelated code motion

Patches:
 1/2 net/sched: act_gate: fix schedule updates with RCU swap
 2/2 net/sched: act_gate: zero-initialize netlink dump struct

--
2.52.GIT


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

end of thread, other threads:[~2026-01-21 12:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-20  0:48 [PATCH net v2 0/2] net: sched: act_gate: fix update races and infoleak Paul Moses
2026-01-20  0:48 ` [PATCH 1/2] net/sched: act_gate: fix schedule updates with RCU swap Paul Moses
2026-01-20  7:25   ` kernel test robot
2026-01-20 21:04   ` Victor Nogueira
2026-01-20 22:47     ` Paul Moses
2026-01-21 12:35       ` Victor Nogueira
2026-01-21  1:00     ` Paul Moses
2026-01-21 12:42       ` Victor Nogueira
2026-01-20  0:48 ` [PATCH 2/2] net/sched: act_gate: zero-initialize netlink dump struct Paul Moses

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