Skip to content

act_gate fixes and gate selftest update

Paul Moses netdev stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3selftests: tc-testing: fix gate replace scheduletools/testing/selftests/tc-testing/tc-tests/actions/gate.json+1 -10 replies
2/3net/sched: act_gate: fix schedule updates with RCU swapinclude/net/tc_act/tc_gate.h net/sched/act_gate.c+248 -711 reply
3/3net/sched: act_gate: zero-initialize netlink dump structnet/sched/act_gate.c+5 -61 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net v1 0/3] act_gate fixes and gate selftest update

This series fixes act_gate schedule update races by switching to an RCU prepare-then-swap update pattern and ensures netlink dump structs are zeroed to avoid leaking padding to userspace. It also updates the tc-testing gate replace test to include the mandatory schedule entries so the test suite reflects the action's strict semantics.

Paul Moses (3):
selftests: tc-testing: fix gate replace schedule net/sched: act_gate: fix schedule updates with RCU swap net/sched: act_gate: zero-initialize netlink dump struct

 include/net/tc_act/tc_gate.h                  |  43 ++-
 net/sched/act_gate.c                          | 287 +++++++++++++-----
 .../tc-testing/tc-tests/actions/gate.json     |   2 +-
 3 files changed, 254 insertions(+), 78 deletions(-)
Signature · 1 line
2.52.GIT