From: Eric Dumazet Date: Fri, 4 Dec 2009 03:46:54 +0000 (+0000) Subject: tcp: Fix a connect() race with timewait sockets X-Git-Tag: v2.6.33-rc1~299^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9327f7053e3993c125944fdb137a0618319ef2a0;p=pandora-kernel.git tcp: Fix a connect() race with timewait sockets First patch changes __inet_hash_nolisten() and __inet6_hash() to get a timewait parameter to be able to unhash it from ehash at same time the new socket is inserted in hash. This makes sure timewait socket wont be found by a concurrent writer in __inet_check_established() Reported-by: kapil dakhane Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed