summaryrefslogtreecommitdiff
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-10-08 12:13:07 +0000
committerJakub Kicinski <kuba@kernel.org>2024-10-09 19:33:57 -0700
commit4daf4dc275f1aa3b9629334c4185d62b7bdff1c4 (patch)
treef3edd15150405eeb07221cc3e9b9682bee9a64aa /rust/helpers/mutex.c
parent4a0ec2aa0704c8271fde33a0f7bb92d09c066c17 (diff)
ipv6: switch inet6_acaddr_hash() to less predictable hash
commit 2384d02520ff ("net/ipv6: Add anycast addresses to a global hashtable") added inet6_acaddr_hash(), using ipv6_addr_hash() and net_hash_mix() to get hash spreading for typical users. However ipv6_addr_hash() is highly predictable and a malicious user could abuse a specific hash bucket. Switch to __ipv6_addr_jhash(). We could use a dedicated secret, or reuse net_hash_mix() as I did in this patch. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: David Ahern <dsahern@kernel.org> Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com> Link: https://patch.msgid.link/20241008121307.800040-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions