From: "Nikolaos D. Bougalis" <nikb@webmaster.com>
To: <netdev@vger.kernel.org>
Cc: <ak@suse.de>
Subject: Re: RFC: Established connections hash function
Date: Tue, 27 Mar 2007 22:01:38 -0700 [thread overview]
Message-ID: <EED7DAB373CC4CB9B576EE1B1FBC9E32@XEON> (raw)
In-Reply-To: <p73lkhi6aj7.fsf@bingen.suse.de>
"Andi Kleen" (ak@suse.de) wrote:
> To truly defend against this you would likely need a cryptographic
> hash, which would be likely too slow.
I do not think that a cryptographically secure hash is necessary for
this. Using a better hash function (i.e. one which does a good job of
throroughly mixing the input bits, as jenkins does), is sufficient when
combined with a secret per-boot salt, something which is easily demonstrable
by test runs.
> If it's a real problem the better fix would be to switch to some
> kind of balanced tree (like Evgeniy is proposing) .
I don't have any special attachment to the Jenkins hash, or to a hash
table even. So, _yes_, by all means if a better solution is available let us
use it and I'll be the first to cheer. But I don't know if Evgeniy's work is
ready for prime time, and I consider plugging in an improved hash function
to be an acceptable solution in the meantime.
> But I think it can be mostly ignored.
With all due respect, it cannot. An attacker with a small-sized botnet
(which is ~250 hosts) can create chains that contain well in excess of 3000
items. A big botnet (and there exist botnets with well over 5000 machines in
them) can bring a system to its knees. You may not have gotten bitten by
this, but others, including myself and Eric Dumazet have. And I believe that
David Miller agrees, although I do not want to put words in his mouth -- or
his keyboard, as the case may be.
What this boils down to is, yes, we can keep patching our own kernels to
use tagged jenkins hashing if this affects us, waiting for something better
to come along. But isn't it more reasonable to add this into the kernel, at
least as a non-default compile time option, and allow administrators to
decide whether this is something they want to use?
-n
next prev parent reply other threads:[~2007-03-28 5:02 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-22 15:39 RFC: Established connections hash function Nikolaos D. Bougalis
2007-03-22 15:52 ` Evgeniy Polyakov
2007-03-22 17:32 ` Nikolaos D. Bougalis
2007-03-22 18:21 ` Evgeniy Polyakov
2007-03-22 19:44 ` Nikolaos D. Bougalis
2007-03-22 19:56 ` Evgeniy Polyakov
2007-03-22 20:53 ` Nikolaos D. Bougalis
2007-03-23 7:52 ` Evgeniy Polyakov
2007-03-22 20:58 ` David Miller
2007-03-22 22:03 ` Eric Dumazet
2007-03-23 7:11 ` David Miller
2007-03-23 8:00 ` Eric Dumazet
2007-03-23 18:46 ` David Miller
2007-03-23 8:07 ` Evgeniy Polyakov
2007-03-23 8:17 ` Eric Dumazet
2007-03-23 8:33 ` Evgeniy Polyakov
2007-03-23 9:10 ` Evgeniy Polyakov
2007-03-23 11:58 ` XOR hash beauty solved [Was: RFC: Established connections hash function] Evgeniy Polyakov
2007-03-23 12:51 ` Nikolaos D. Bougalis
2007-03-23 12:45 ` RFC: Established connections hash function Nikolaos D. Bougalis
2007-03-27 14:11 ` Andi Kleen
2007-03-28 5:01 ` Nikolaos D. Bougalis [this message]
2007-03-28 6:29 ` David Miller
2007-03-28 9:29 ` Andi Kleen
2007-03-28 10:45 ` Evgeniy Polyakov
2007-03-28 14:14 ` Andi Kleen
2007-03-28 13:50 ` Eric Dumazet
2007-03-28 14:52 ` Andi Kleen
2007-03-29 9:18 ` Evgeniy Polyakov
2007-03-28 14:17 ` RFC: Established connections hash function II Andi Kleen
2007-03-28 19:04 ` RFC: Established connections hash function David Miller
2007-03-28 20:12 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2007-03-24 12:26 linux
2007-03-24 13:29 ` Evgeniy Polyakov
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=EED7DAB373CC4CB9B576EE1B1FBC9E32@XEON \
--to=nikb@webmaster.com \
--cc=ak@suse.de \
--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