From: Taehee Yoo <ap420073@gmail.com>
To: pablo@netfilter.org, netfilter-devel@vger.kernel.org
Cc: ap420073@gmail.com
Subject: [PATCH nf v2 0/3] netfilter: nf_flow_table: fix several flowtable bugs
Date: Tue, 30 Apr 2019 01:55:06 +0900 [thread overview]
Message-ID: <20190429165506.1202-1-ap420073@gmail.com> (raw)
This patch set fixes several bugs in the flowtable modules.
First patch fixes netdev refcnt leak bug.
The flow offload routine allocates a dst_entry and that has 1 refcnt.
So the dst_release() should be called.
This patch just adds missing dst_release() in the end of
nft_flow_offload_eval().
Second patch adds ttl value check routine.
Flow offload data-path routine decreases ttl value. but it doesn't check
ttl value.
This patch just adds ttl value check routine.
If ttl value is under 1, the packet will be passed up to the L3.
Third patch adds CT condition check routine into flow offload routines.
a flow offloaded CT can be deleted by masquerade notifier. if so,
the flow offload shouldn't be used in flow offload data-path and
the GC should delete that.
v1 -> v2 :
- Drop Second patch.
- use IPS_DYING_BIT instead of ct refcnt at Third patch.
Taehee Yoo (3):
netfilter: nf_flow_table: fix netdev refcnt leak
netfilter: nf_flow_table: check ttl value in flow offload data path
netfilter: nf_flow_table: do not use deleted CT's flow offload
net/netfilter/nf_flow_table_core.c | 10 +++++++++-
net/netfilter/nf_flow_table_ip.c | 6 ++++++
net/netfilter/nft_flow_offload.c | 1 +
3 files changed, 16 insertions(+), 1 deletion(-)
--
2.17.1
next reply other threads:[~2019-04-29 16:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-29 16:55 Taehee Yoo [this message]
2019-04-30 11:48 ` [PATCH nf v2 0/3] netfilter: nf_flow_table: fix several flowtable bugs Pablo Neira Ayuso
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=20190429165506.1202-1-ap420073@gmail.com \
--to=ap420073@gmail.com \
--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.