linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v1 0/2] net/sched: fix action batch deletion cleanup
@ 2026-09-10  9:34 Xuanqiang Luo
  2026-09-10  9:34 ` [PATCH net v1 1/2] net/sched: act_api: release tail references on DELACTION failure Xuanqiang Luo
  2026-09-10  9:34 ` [PATCH net v1 2/2] selftests: tc-testing: test action batch deletion failure cleanup Xuanqiang Luo
  0 siblings, 2 replies; 3+ messages in thread
From: Xuanqiang Luo @ 2026-09-10  9:34 UTC (permalink / raw)
  To: netdev
  Cc: jhs, jiri, davem, edumazet, kuba, pabeni, horms, shuah,
	marcelo.leitner, pctammela, linux-kselftest, linux-kernel,
	Xuanqiang Luo

From: Xuanqiang Luo <luoxuanqiang@kylinos.cn>

Batched RTM_DELACTION requests can leak references to unprocessed actions
when deletion stops at 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 /root/tc-testing/batch-delete.json

not ok 1 d710 - Release tail references after first action deletion fails
	Could not match regex pattern. Verify command output:
[...]
	 index 2 ref 2 bind 0
[...]
	 index 3 ref 2 bind 0

not ok 2 d711 - Release tail references after middle action deletion fails
	Could not match regex pattern. Verify command output:
[...]
	 index 3 ref 2 bind 0

not ok 3 d713 - Delete a tail action once after a failed batch
	Could not match regex pattern. Verify command output:
total acts 2
[...]
	 index 2 ref 1 bind 0

Xuanqiang Luo (2):
  net/sched: act_api: release tail references on DELACTION failure
  selftests: tc-testing: test action batch deletion failure cleanup

 net/sched/act_api.c                           |  11 +-
 .../tc-tests/actions/batch-delete.json        | 115 ++++++++++++++++++
 2 files changed, 123 insertions(+), 3 deletions(-)
 create mode 100644 tools/testing/selftests/tc-testing/tc-tests/actions/batch-delete.json


base-commit: 7f26a5e8040b4957ef4dbdfcde6cc7ba2db53937
-- 
2.43.0


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

end of thread, other threads:[~2026-09-10  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10  9:34 [PATCH net v1 0/2] net/sched: fix action batch deletion cleanup Xuanqiang Luo
2026-09-10  9:34 ` [PATCH net v1 1/2] net/sched: act_api: release tail references on DELACTION failure Xuanqiang Luo
2026-09-10  9:34 ` [PATCH net v1 2/2] selftests: tc-testing: test action batch deletion failure cleanup Xuanqiang Luo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).