From: Eric Dumazet Date: Wed, 21 Apr 2010 09:26:15 +0000 (+0000) Subject: tcp: bind() fix when many ports are bound X-Git-Tag: v2.6.34-rc6~33^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fda48a0d7a8412cedacda46a9c0bf8ef9cd13559;p=pandora-kernel.git tcp: bind() fix when many ports are bound Port autoselection done by kernel only works when number of bound sockets is under a threshold (typically 30000). When this threshold is over, we must check if there is a conflict before exiting first loop in inet_csk_get_port() Change inet_csk_bind_conflict() to forbid two reuse-enabled sockets to bind on same (address,port) tuple (with a non ANY address) Same change for inet6_csk_bind_conflict() Reported-by: Gaspar Chilingarov Signed-off-by: Eric Dumazet Acked-by: Evgeniy Polyakov Signed-off-by: David S. Miller --- Reading git-diff-tree failed