diff options
author | Eric Dumazet <[email protected]> | 2024-10-08 12:13:07 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-10-09 19:33:57 -0700 |
commit | 4daf4dc275f1aa3b9629334c4185d62b7bdff1c4 (patch) | |
tree | f3edd15150405eeb07221cc3e9b9682bee9a64aa /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 4a0ec2aa0704c8271fde33a0f7bb92d09c066c17 (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 <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions