From: wenxu@ucloud.cn
To: davem@davemloft.net, pablo@netfilter.org
Cc: netdev@vger.kernel.org, netfilter-devel@vger.kernel.org
Subject: [PATCH net-next 0/3] make nf_ct_frag/6_gather elide the skb CB clear
Date: Sun, 5 Jul 2020 22:28:29 +0800 [thread overview]
Message-ID: <1593959312-6135-1-git-send-email-wenxu@ucloud.cn> (raw)
From: wenxu <wenxu@ucloud.cn>
Add nf_ct_frag_gather and Make nf_ct_frag6_gather elide the CB clear
when packets are defragmented by connection tracking. This can make
each subsystem such as br_netfilter, openvswitch, act_ct do defrag
without restore the CB.
This also avoid serious crashes and problems in ct subsystem.
Because Some packet schedulers store pointers in the qdisc CB private
area and parallel accesses to the SKB.
This series following up
http://patchwork.ozlabs.org/project/netdev/patch/1593422178-26949-1-git-send-email-wenxu@ucloud.cn/
patch1: add nf_ct_frag_gather elide the CB clear
patch2: make nf_ct_frag6_gather elide the CB clear
patch3: fix clobber qdisc_skb_cb in act_ct with defrag
wenxu (3):
netfilter: nf_defrag_ipv4: Add nf_ct_frag_gather support
netfilter: nf_conntrack_reasm: make nf_ct_frag6_gather elide the CB
clear
net/sched: act_ct: fix clobber qdisc_skb_cb in defrag
include/linux/netfilter_ipv6.h | 9 +-
include/net/netfilter/ipv4/nf_defrag_ipv4.h | 2 +
include/net/netfilter/ipv6/nf_defrag_ipv6.h | 3 +-
net/bridge/netfilter/nf_conntrack_bridge.c | 7 +-
net/ipv4/netfilter/nf_defrag_ipv4.c | 314 ++++++++++++++++++++++++++++
net/ipv6/netfilter/nf_conntrack_reasm.c | 19 +-
net/ipv6/netfilter/nf_defrag_ipv6_hooks.c | 3 +-
net/openvswitch/conntrack.c | 8 +-
net/sched/act_ct.c | 12 +-
9 files changed, 350 insertions(+), 27 deletions(-)
--
1.8.3.1
next reply other threads:[~2020-07-05 14:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-05 14:28 wenxu [this message]
2020-07-05 14:28 ` [PATCH net-next 1/3] netfilter: nf_defrag_ipv4: Add nf_ct_frag_gather support wenxu
2020-07-06 5:40 ` Cong Wang
2020-07-06 14:38 ` Florian Westphal
2020-07-06 15:08 ` wenxu
2020-07-06 16:29 ` Florian Westphal
2020-07-07 4:47 ` wenxu
2020-07-05 14:28 ` [PATCH net-next 2/3] netfilter: nf_conntrack_reasm: make nf_ct_frag6_gather elide the CB clear wenxu
2020-07-05 14:28 ` [PATCH net-next 3/3] net/sched: act_ct: fix clobber qdisc_skb_cb in defrag wenxu
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=1593959312-6135-1-git-send-email-wenxu@ucloud.cn \
--to=wenxu@ucloud.cn \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.