]> git.baikalelectronics.ru Git - kernel.git/commit
soreuseport: Fix TCP listener hash collision
authorCraig Gallek <kraig@google.com>
Thu, 28 Apr 2016 23:24:32 +0000 (19:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 May 2016 23:36:54 +0000 (19:36 -0400)
commit05951f066dfe1880487c1a702cbfcabf54c0d845
treebe89eb4366ed684bf7db2fbb7c1ea8521e7c985a
parentb461534b1a9f8dc565f64734a85720a72a39c0bd
soreuseport: Fix TCP listener hash collision

I forgot to include a check for listener port equality when deciding
if two sockets should belong to the same reuseport group.  This was
not caught previously because it's only necessary when two listening
sockets for the same user happen to hash to the same listener bucket.
The same error does not exist in the UDP path.

Fixes: 74fabcafc8b7("soreuseport: fast reuseport TCP socket selection")
Signed-off-by: Craig Gallek <kraig@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_hashtables.c