Eric Dumazet 1bde5ac493 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 <renton@renton.name>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-12-23 09:32:46 -08:00
..
2010-10-25 13:09:44 -07:00
2010-10-25 13:09:43 -07:00
2010-11-12 14:07:14 -08:00
2010-11-28 11:29:27 -08:00
2010-09-23 14:33:39 -07:00
2010-12-23 09:32:46 -08:00
2010-10-21 15:44:13 +02:00
2010-09-23 14:33:39 -07:00
2010-12-08 12:13:43 -08:00
2010-12-08 09:58:44 -08:00
2010-12-22 13:36:35 -05:00
2010-04-20 16:37:13 -07:00
2010-10-29 04:16:28 -04:00
2010-11-29 09:45:15 -08:00
2010-08-09 11:25:17 +02:00
2010-12-09 20:35:27 -08:00
2010-10-15 15:53:27 +02:00