From: Eric Dumazet Date: Thu, 23 Dec 2010 17:32:46 +0000 (-0800) Subject: tcp: fix listening_get_next() X-Git-Tag: v2.6.37-rc8~13^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bde5ac49398a064c753bb490535cfad89e99a5f;p=pandora-kernel.git tcp: fix listening_get_next() Alexey Vlasov found /proc/net/tcp could sometime loop and display millions of sockets in LISTEN state. In 2.6.29, when we converted TCP hash tables to RCU, we left two sk_next() calls in listening_get_next(). We must instead use sk_nulls_next() to properly detect an end of chain. Reported-by: Alexey Vlasov Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed