]> 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)
commitb34eeab6017b25d3f6ccf83dd7ed39d527fc2530
treebe89eb4366ed684bf7db2fbb7c1ea8521e7c985a
parent31f5ecff2c2ae12b17bd041386f71fe71dec5ca2
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: 0f66db96d4c3("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