From: Herbert Xu <herbert@gondor.apana.org.au>
To: David Miller <davem@davemloft.net>
Cc: joamaki@gmail.com, netdev@vger.kernel.org
Subject: Re: [PATCH] Fix xfrm hash collisions by changing __xfrm4_daddr_saddr_hash to hash addresses with addition
Date: Thu, 13 Aug 2009 14:11:15 +1000 [thread overview]
Message-ID: <20090813041115.GA19344@gondor.apana.org.au> (raw)
In-Reply-To: <20090812.205635.244644770.davem@davemloft.net>
On Wed, Aug 12, 2009 at 08:56:35PM -0700, David Miller wrote:
>
> 1) The client is on your private network, much more serious
> mischief is possible.
Not necessarily as having an IPsec connection does not entail
full access to the network on the other side.
> 2) Whoever creates such a hash collision explosion can be
> precisely identified.
>
> The ikev1 failure case is an interesting situation I hadn't
> considered.
>
> Maybe that can matter, but again the guilty party is easy to identify
> and easy to block via whatever means appropriate.
For corporate networks perhaps. However, in other cases the
peer may be trusted even less. For instance, if IPsec were
used for mobility purposes then you essentially don't know
the client at all.
It's like Facebook. If one user mounts a DoS attack you can
block their account. However, if they can simply come back
with a new account then you need to make sure that the attack
can be mitigated in other ways so that it doesn't bring the
whole thing down.
BTW, this isn't just exposed to IPsec peers. It can also be
exposed to those behind the gateway not using IPsec.
Some IPsec applications use a policy that spawns one SA per
src/dst address pair. In that case, even an entity that is
not on the IPsec side would be able to spawn SAs with the intent
of causing collisions. It simply needs to send packets through
the IPsec gateway with the appropriate destination addresses.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2009-08-13 4:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-05 7:41 [PATCH] xfrm: xfrm hash to use Jenkins' hash Jussi Mäki
2009-08-05 8:39 ` Jussi Maki
2009-08-05 19:08 ` David Miller
2009-08-06 6:32 ` Jussi Maki
2009-08-06 8:58 ` Jussi Maki
2009-08-06 17:40 ` David Miller
2009-08-07 7:38 ` [PATCH] Fix xfrm hash collisions by changing __xfrm4_daddr_saddr_hash to hash addresses with addition Jussi Maki
2009-08-10 4:52 ` David Miller
2009-08-13 2:06 ` Herbert Xu
2009-08-13 3:42 ` David Miller
2009-08-13 3:53 ` Herbert Xu
2009-08-13 3:56 ` David Miller
2009-08-13 4:11 ` Herbert Xu [this message]
2009-08-13 4:18 ` David Miller
2009-08-13 4:19 ` Herbert Xu
2009-08-06 17:40 ` [PATCH] xfrm: xfrm hash to use Jenkins' hash David Miller
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=20090813041115.GA19344@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=davem@davemloft.net \
--cc=joamaki@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox