From: Chris Mi <chrism@mellanox.com>
To: netdev@vger.kernel.org
Cc: jhs@mojatatu.com, lucasb@mojatatu.com, xiyou.wangcong@gmail.com,
jiri@resnulli.us, davem@davemloft.net
Subject: [patch net 0/4] net/sched: Fix a system panic when deleting filters
Date: Mon, 16 Oct 2017 04:31:38 -0400 [thread overview]
Message-ID: <1508142702-3312-1-git-send-email-chrism@mellanox.com> (raw)
If some filters share the same action, when deleting these filters,
system may panic. This patchset fixes this issue. And the test case
finding this issue is also integrated into tc test suite of selftests.
Chris Mi (4):
net/sched: Change tc_action refcnt and bindcnt to atomic
net/sched: Use action array instead of action list as parameter
selftests: Introduce a new script to generate tc batch file
selftests: Introduce a new test case to tc testsuite
include/net/act_api.h | 11 +-
net/sched/act_api.c | 124 +++++++++++++--------
net/sched/act_bpf.c | 4 +-
net/sched/act_connmark.c | 4 +-
net/sched/act_csum.c | 4 +-
net/sched/act_gact.c | 4 +-
net/sched/act_ife.c | 4 +-
net/sched/act_ipt.c | 4 +-
net/sched/act_mirred.c | 4 +-
net/sched/act_nat.c | 4 +-
net/sched/act_pedit.c | 4 +-
net/sched/act_police.c | 4 +-
net/sched/act_sample.c | 4 +-
net/sched/act_simple.c | 4 +-
net/sched/act_skbedit.c | 4 +-
net/sched/act_skbmod.c | 4 +-
net/sched/act_tunnel_key.c | 4 +-
net/sched/act_vlan.c | 4 +-
net/sched/cls_api.c | 18 +--
.../tc-testing/tc-tests/filters/tests.json | 23 +++-
tools/testing/selftests/tc-testing/tdc.py | 20 +++-
tools/testing/selftests/tc-testing/tdc_batch.py | 62 +++++++++++
tools/testing/selftests/tc-testing/tdc_config.py | 2 +
23 files changed, 222 insertions(+), 102 deletions(-)
create mode 100755 tools/testing/selftests/tc-testing/tdc_batch.py
--
1.8.3.1
next reply other threads:[~2017-10-16 8:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-16 8:31 Chris Mi [this message]
2017-10-16 8:31 ` [patch net 1/4] net/sched: Change tc_action refcnt and bindcnt to atomic Chris Mi
2017-10-16 8:31 ` [patch net 2/4] net/sched: Use action array instead of action list as parameter Chris Mi
2017-10-16 8:31 ` [patch net 3/4] selftests: Introduce a new script to generate tc batch file Chris Mi
2017-10-16 8:31 ` [patch net 4/4] selftests: Introduce a new test case to tc testsuite Chris Mi
2017-10-16 11:06 ` [patch net 0/4] net/sched: Fix a system panic when deleting filters Jamal Hadi Salim
2017-10-16 11:20 ` Chris Mi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1508142702-3312-1-git-send-email-chrism@mellanox.com \
--to=chrism@mellanox.com \
--cc=davem@davemloft.net \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=lucasb@mojatatu.com \
--cc=netdev@vger.kernel.org \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).