From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Jarno Rajahalme <jarno@ovn.org>
Cc: netfilter-devel@vger.kernel.org, joe@ovn.org
Subject: Re: [PATCH nf v3] net/openvswitch: Delete conntrack entry clashing with an expectation.
Date: Tue, 25 Apr 2017 11:06:09 +0200 [thread overview]
Message-ID: <20170425090609.GB2833@salvia> (raw)
In-Reply-To: <1492205198-41758-1-git-send-email-jarno@ovn.org>
On Fri, Apr 14, 2017 at 02:26:38PM -0700, Jarno Rajahalme wrote:
> Conntrack helpers do not check for a potentially clashing conntrack
> entry when creating a new expectation. Also, nf_conntrack_in() will
> check expectations (via init_conntrack()) only if a conntrack entry
> can not be found. The expectation for a packet which also matches an
> existing conntrack entry will not be removed by conntrack, and is
> currently handled inconsistently by OVS, as OVS expects the
> expectation to be removed when the connection tracking entry matching
> that expectation is confirmed.
>
> It should be noted that normally an IP stack would not allow reuse of
> a 5-tuple of an old (possibly lingering) connection for a new data
> connection, so this is somewhat unlikely corner case. However, it is
> possible that a misbehaving source could cause conntrack entries be
> created that could then interfere with new related connections.
>
> Fix this in the OVS module by deleting the clashing conntrack entry
> after an expectation has been matched. This causes the following
> nf_conntrack_in() call also find the expectation and remove it when
> creating the new conntrack entry, as well as the forthcoming reply
> direction packets to match the new related connection instead of the
> old clashing conntrack entry.
Applied, with minor changes that we have already discussed here.
Thanks.
prev parent reply other threads:[~2017-04-25 9:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-14 21:26 [PATCH nf v3] net/openvswitch: Delete conntrack entry clashing with an expectation Jarno Rajahalme
2017-04-18 18:27 ` Joe Stringer
2017-04-18 18:33 ` Jarno Rajahalme
2017-04-18 19:24 ` Joe Stringer
2017-04-19 10:30 ` Pablo Neira Ayuso
2017-04-19 19:56 ` Jarno Rajahalme
2017-04-24 20:16 ` Jarno Rajahalme
2017-04-25 9:06 ` Pablo Neira Ayuso [this message]
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=20170425090609.GB2833@salvia \
--to=pablo@netfilter.org \
--cc=jarno@ovn.org \
--cc=joe@ovn.org \
--cc=netfilter-devel@vger.kernel.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 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).