]> Git Repo - linux.git/commit
inet: switch IP ID generator to siphash
authorEric Dumazet <[email protected]>
Wed, 27 Mar 2019 19:40:33 +0000 (12:40 -0700)
committerDavid S. Miller <[email protected]>
Wed, 27 Mar 2019 21:29:26 +0000 (14:29 -0700)
commitdf453700e8d81b1bdafdf684365ee2b9431fb702
treecb7ea20a23956471c8362fd5d687822fd3ecc5cf
parent180a8c3d5dad5862b2f19727b363069bfecb26d8
inet: switch IP ID generator to siphash

According to Amit Klein and Benny Pinkas, IP ID generation is too weak
and might be used by attackers.

Even with recent net_hash_mix() fix (netns: provide pure entropy for net_hash_mix())
having 64bit key and Jenkins hash is risky.

It is time to switch to siphash and its 128bit keys.

Signed-off-by: Eric Dumazet <[email protected]>
Reported-by: Amit Klein <[email protected]>
Reported-by: Benny Pinkas <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/linux/siphash.h
include/net/netns/ipv4.h
net/ipv4/route.c
net/ipv6/output_core.c
This page took 0.044161 seconds and 4 git commands to generate.