diff options
| author | Kuniyuki Iwashima <[email protected]> | 2024-10-18 01:41:00 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-10-23 11:17:35 +0000 |
| commit | c972c1c41d9b20fb38b54e77dcee763e27e715a9 (patch) | |
| tree | 32cf93781e6608687bbeea13262263e51841b085 /tools/net/ynl/cli.py | |
| parent | ip6mr: Add __init to ip6_mr_cleanup(). (diff) | |
| download | kernel-c972c1c41d9b20fb38b54e77dcee763e27e715a9.tar.gz kernel-c972c1c41d9b20fb38b54e77dcee763e27e715a9.zip | |
ipv4: Switch inet_addr_hash() to less predictable hash.
Recently, commit 4a0ec2aa0704 ("ipv6: switch inet6_addr_hash()
to less predictable hash") and commit 4daf4dc275f1 ("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 <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/net/ynl/cli.py')
0 files changed, 0 insertions, 0 deletions
