diff options
author | Willy Tarreau <w@1wt.eu> | 2022-05-02 10:46:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-25 11:45:20 +0200 |
commit | a81a6b204a303116e64e0a6288b701cbda9d4de7 (patch) | |
tree | 4d12eeba02d8371ba783bb2a2ddf2081f8301590 /init/version.c | |
parent | 3c78eea640f69e2198b69128173e6d65a0bcdc02 (diff) | |
download | linux-rt-a81a6b204a303116e64e0a6288b701cbda9d4de7.tar.gz |
tcp: drop the hash_32() part from the index calculation
commit e8161345ddbb66e449abde10d2fdce93f867eba9 upstream.
In commit 190cc82489f4 ("tcp: change source port randomizarion at
connect() time"), the table_perturb[] array was introduced and an
index was taken from the port_offset via hash_32(). But it turns
out that hash_32() performs a multiplication while the input here
comes from the output of SipHash in secure_seq, that is well
distributed enough to avoid the need for yet another hash.
Suggested-by: Amit Klein <aksecurity@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init/version.c')
0 files changed, 0 insertions, 0 deletions