diff options
author | Eric Dumazet <edumazet@google.com> | 2021-10-28 20:56:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-02 19:46:11 +0100 |
commit | 4ba6c163fe64e0836acd0708962fb30cf78dbd42 (patch) | |
tree | c30173c75fdb228b92715f073d480ff78e0f715d /drivers/net/usb/usbnet.c | |
parent | 3f439c231a035bab056a5e20b1fd16f4c4c483c1 (diff) | |
download | linux-stable-4ba6c163fe64e0836acd0708962fb30cf78dbd42.tar.gz linux-stable-4ba6c163fe64e0836acd0708962fb30cf78dbd42.tar.bz2 linux-stable-4ba6c163fe64e0836acd0708962fb30cf78dbd42.zip |
ipv4: use siphash instead of Jenkins in fnhe_hashfun()
commit 6457378fe796815c973f631a1904e147d6ee33b1 upstream.
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: d546c621542d ("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>
[OP: adjusted context for 5.4 stable]
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/usb/usbnet.c')
0 files changed, 0 insertions, 0 deletions