]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: use siphash instead of Jenkins in fnhe_hashfun()
authorEric Dumazet <edumazet@google.com>
Wed, 25 Aug 2021 23:17:29 +0000 (16:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Aug 2021 09:20:34 +0000 (10:20 +0100)
commit9fab9e0655fc9072655802d3e0ef5fd355d68bf5
treea1011494e41faacba2c0d400f5c7554028d83489
parentf2458775b74dd7ee509a16351456a69541be821f
ipv4: use siphash instead of Jenkins in fnhe_hashfun()

A group of security researchers brought to our attention
the weakness of hash function used in fnhe_hashfun().

Lets use siphash instead of Jenkins Hash, to considerably
reduce security risks.

Also remove the inline keyword, this really is distracting.

Fixes: 7502f7b2f107 ("ipv4: harden fnhe_hashfun()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Keyu Man <kman001@ucr.edu>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c