From: Steffen Klassert <steffen.klassert@secunet.com>
To: Karl Heiss <kheiss@gmail.com>
Cc: <netdev@vger.kernel.org>
Subject: Re: IPSEC: tunnel breakage with out-of-order IPv4 fragments
Date: Fri, 11 Jul 2014 13:00:35 +0200 [thread overview]
Message-ID: <20140711110035.GB6633@secunet.com> (raw)
In-Reply-To: <CAGugRbVWyTM2J0Fyw1Cq1byqfjZBy_EFLSShqVdzxYZmmUWK_g@mail.gmail.com>
On Thu, Jul 10, 2014 at 10:57:21AM -0400, Karl Heiss wrote:
> I believe I have found an issue whereby IPv4 fragments arriving
> out-of-order will cause an IPSEC tunnel to stop passing any traffic
> which arrived fragmented, citing 'SA-icv-failure'.
Why do you think the arriving order causes our problems? SA-icv-failure
means that the integrity check failed and this is independent of the
packet order, unless you use 64 bit extended sequence numbers (ESN).
I would guess you don't use ESN because you noticed these problems
already with v2.6.32 and this had no ESN support.
If this happens just with fragmented packets, I'd guess there is a
problem when packets get fragmented after IPsec and reassembled
before IPsec processing.
> Packets which were
> not fragmented will validate and pass successfully, even once the
> condition has been triggered. I have decrypted the traffic and have
> verified that the traffic is arriving correctly. It appears as if the
> condition persists until all connections are closed.
>
> The issue was originally discovered in RHEL 6.5 (2.6.32-431.11.2.el6)
> kernel and verified with Fedora 20 running 3.15.0-rc8-nn on x86_64.
>
> The easiest way I have found to reproduce the issue is to use a kernel
> without commit c08751c851b78514f6ec5 (Fix data chunk fragmentation for
> MTU values which are not multiple of 4) to generate fragmented SCTP
> traffic using multiple single-homed connections.
Do you have some odd MTU/PMTU value on this route? If so, you might
get post IPsec fragmented packets without that commit.
I have a lot of testcases where I test PMTU discovery and fragmentation
with IPsec. I've never seen such problems, but I don't use sctp. Is there
any chance to reproduce this with another protocol?
next prev parent reply other threads:[~2014-07-11 11:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-10 14:57 IPSEC: tunnel breakage with out-of-order IPv4 fragments Karl Heiss
2014-07-10 15:11 ` Karl Heiss
2014-07-11 11:00 ` Steffen Klassert [this message]
2014-07-11 12:51 ` Karl Heiss
2014-07-14 9:33 ` Steffen Klassert
2014-07-14 11:52 ` Karl Heiss
2014-07-15 9:16 ` Steffen Klassert
2014-07-15 12:13 ` Karl Heiss
2014-07-16 10:59 ` Steffen Klassert
2014-07-16 11:49 ` Karl Heiss
2014-07-16 12:26 ` Karl Heiss
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=20140711110035.GB6633@secunet.com \
--to=steffen.klassert@secunet.com \
--cc=kheiss@gmail.com \
--cc=netdev@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 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.