Files
linux/net/ipv4
Kuniyuki Iwashima c972c1c41d ipv4: Switch inet_addr_hash() to less predictable hash.
Recently, commit 4a0ec2aa07 ("ipv6: switch inet6_addr_hash()
to less predictable hash") and commit 4daf4dc275 ("ipv6: switch
inet6_acaddr_hash() to less predictable hash") hardened IPv6
address hash functions.

inet_addr_hash() is also highly predictable, and a malicious use
could abuse a specific bucket.

Let's follow the change on IPv4 by using jhash_1word().

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241018014100.93776-1-kuniyu@amazon.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-10-23 13:17:35 +02:00
..
2024-05-01 18:37:07 -07:00
2024-09-11 20:44:31 -07:00
2024-10-15 18:52:26 -07:00
2024-09-09 17:21:47 -07:00
2024-10-15 18:52:26 -07:00
2024-07-30 18:35:12 -07:00
2024-01-04 10:23:10 -08:00
2024-10-15 18:52:26 -07:00
2024-10-15 18:52:26 -07:00
2024-06-06 11:52:52 +02:00
2024-09-11 20:44:32 -07:00
2023-09-14 16:16:36 +02:00