net/sched: fix action batch failure cleanup
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net/sched: act_api: release all action references on NEWACTION failurenet/ | +2 | 0 replies | Applied |
| 2/2 | selftests: tc-testing: test action batch failure cleanuptools/ | +78 | 0 replies | Applied |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Jamal Hadi Salim |
|---|---|
| Series | R-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net v1 0/2] net/sched: fix action batch failure cleanup
From: Xuanqiang Luo <[email protected]>
Failed batched RTM_NEWACTION requests can leak action references and reserved IDR indices when cleanup encounters a filter-bound action.
Patch 1 fixes the failure cleanup.
Patch 2 adds tc-testing regression coverage.
Failure reproduction (key output excerpts):
python3 tdc.py -f tc-tests/actions/gact-rollback.json
not ok 1 e3b1 - Failed action batch releases a bound action reference
Could not match regex pattern. Verify command output:
[...]
index 1 ref 3 bind 1
not ok 2 e3b2 - Failed action batch releases entries after a bound action
Command exited with 255, expected 0
RTNETLINK answers: Resource temporarily unavailable
We have an error talking to the kernel
not ok 3 e3b3 - Failed action batch releases repeated references to a bound action
Could not match regex pattern. Verify command output:
[...]
index 1 ref 4 bind 1
Xuanqiang Luo (2):
net/sched: act_api: release all action references on NEWACTION failure
selftests: tc-testing: test action batch failure cleanup
net/sched/act_api.c | 9 +-- .../tc-tests/actions/gact-rollback.json | 78 +++++++++++++++++++ 2 files changed, 80 insertions(+), 7 deletions(-) create mode 100644 tools/testing/selftests/tc-testing/tc-tests/actions/gact-rollback.json
base-commit: a401a9d547c50ef34db1088cc1fb9a201a7af657
Signature · 1 line
2.43.0