Eric Dumazet
c579bd1b40
tcp: add some entropy in __inet_hash_connect()
...
Even when implementing RFC 6056 3.3.4 (Algorithm 4: Double-Hash
Port Selection Algorithm), a patient attacker could still be able
to collect enough state from an otherwise idle host.
Idea of this patch is to inject some noise, in the
cases __inet_hash_connect() found a candidate in the first
attempt.
This noise should not significantly reduce the collision
avoidance, and should be zero if connection table
is already well used.
Note that this is not implementing RFC 6056 3.3.5
because we think Algorithm 5 could hurt typical
workloads.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: David Dworken <ddworken@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-02-11 13:13:05 -08:00
..
2020-08-10 12:06:44 -07:00
2021-01-27 22:53:29 +01:00
2021-02-02 18:41:10 -08:00
2020-03-12 15:55:00 -07:00
2020-11-13 14:24:39 -08:00
2020-12-03 17:38:21 -08:00
2020-09-08 20:03:36 -07:00
2019-11-01 14:57:52 -07:00
2020-11-16 08:08:54 -08:00
2021-01-27 11:49:55 +01:00
2021-01-11 18:20:09 -08:00
2020-12-28 14:44:32 -08:00
2021-02-08 16:47:03 -08:00
2019-10-04 11:10:56 -07:00
2020-07-28 17:42:31 -07:00
2021-02-08 16:47:03 -08:00
2021-02-08 16:47:03 -08:00
2020-10-02 19:11:11 -07:00
2020-12-28 15:00:00 -08:00
2021-01-29 20:39:14 -08:00
2020-11-23 18:36:21 -05:00
2020-05-20 20:31:27 -04:00
2021-01-18 19:59:17 -08:00
2020-11-17 16:08:36 -08:00
2020-12-12 15:08:54 -08:00
2021-02-11 13:13:05 -08:00
2020-08-19 14:06:36 +02:00
2019-11-07 16:15:56 -08:00
2019-09-20 18:23:33 -07:00
2019-08-08 15:55:10 -07:00
2020-11-09 17:50:28 -08:00
2021-02-03 14:51:39 -08:00
2020-08-25 06:28:02 -07:00
2021-02-03 14:51:39 -08:00
2020-08-25 06:23:59 -07:00
2021-01-08 19:25:35 -08:00
2021-02-01 19:58:23 -08:00
2020-11-09 17:50:28 -08:00
2020-07-09 12:55:37 +02:00
2021-02-06 14:42:57 -08:00
2020-11-09 17:50:28 -08:00
2019-10-04 11:10:56 -07:00
2020-09-10 12:25:51 -07:00
2020-08-18 16:02:16 -07:00
2020-07-10 13:54:00 -07:00
2020-11-16 08:08:54 -08:00
2020-10-30 12:57:39 +01:00
2019-05-21 10:50:45 +02:00
2021-01-28 20:49:54 -08:00
2020-11-23 18:36:21 -05:00
2021-01-29 20:59:53 -08:00
2019-05-30 11:26:32 -07:00
2020-03-12 22:34:48 -07:00
2020-11-23 18:36:21 -05:00
2021-02-08 16:47:03 -08:00
2020-12-16 11:01:04 -08:00
2021-02-08 16:47:03 -08:00
2020-11-17 11:03:22 -08:00
2020-03-16 18:26:54 -07:00
2020-11-18 00:12:34 +01:00
2019-05-21 10:50:45 +02:00
2020-11-20 18:09:47 -08:00
2021-01-15 20:22:16 -08:00
2019-05-30 11:26:32 -07:00
2018-10-10 22:26:00 -07:00
2020-02-27 18:50:19 -08:00
2020-08-24 14:35:00 -07:00
2020-07-06 13:23:03 -07:00
2020-07-06 13:23:03 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2021-01-28 17:09:31 -08:00
2021-02-03 14:51:40 -08:00
2020-10-30 12:10:57 -07:00
2020-12-14 16:40:27 -08:00
2020-12-14 17:30:06 -08:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2021-01-28 17:09:31 -08:00
2019-05-21 10:50:45 +02:00
2021-01-23 21:33:01 -08:00
2020-08-24 17:31:20 -07:00
2021-01-23 19:32:51 -08:00
2020-03-09 22:34:58 +01:00
2020-10-13 17:11:52 -07:00
2017-11-02 11:10:55 +01:00
2020-07-06 13:23:03 -07:00
2019-05-21 10:50:45 +02:00
2020-03-16 18:26:55 -07:00
2021-01-22 20:05:56 -08:00
2020-07-09 12:51:36 +02:00
2020-08-21 15:16:11 -07:00
2020-11-09 16:42:49 -08:00
2020-07-24 15:41:54 -07:00
2021-02-02 14:21:31 -08:00
2021-01-07 12:53:29 -08:00
2020-09-28 12:50:12 -07:00
2020-07-10 13:54:00 -07:00
2021-02-04 18:37:14 -08:00
2020-07-19 18:16:41 -07:00
2020-05-06 09:40:08 +02:00
2020-05-11 15:12:27 +02:00
2019-12-24 22:28:54 -08:00
2019-12-09 09:59:07 +01:00
2020-05-06 09:40:08 +02:00
2020-10-09 12:29:48 +02:00