summaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@amazon.com>2024-10-18 03:41:00 +0200
committerPaolo Abeni <pabeni@redhat.com>2024-10-23 13:17:35 +0200
commitc972c1c41d9b20fb38b54e77dcee763e27e715a9 (patch)
tree32cf93781e6608687bbeea13262263e51841b085 /drivers/net/macvlan.c
parentip6mr: Add __init to ip6_mr_cleanup(). (diff)
downloadlinux-c972c1c41d9b20fb38b54e77dcee763e27e715a9.tar.xz
linux-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 <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>
Diffstat (limited to 'drivers/net/macvlan.c')
0 files changed, 0 insertions, 0 deletions