summaryrefslogtreecommitdiffstats
path: root/net/rds/iw.h
diff options
context:
space:
mode:
authorEric Dumazet2011-01-24 23:41:20 +0100
committerDavid S. Miller2011-01-24 23:41:20 +0100
commitfd0273c5033630b8673554cd39660435d1ab2ac4 (patch)
treee13f583f7848dcc1c620f3e4598e22f96a2d8efc /net/rds/iw.h
parentinetpeer: Use correct AVL tree base pointer in inet_getpeer(). (diff)
downloadkernel-qcow2-linux-fd0273c5033630b8673554cd39660435d1ab2ac4.tar.gz
kernel-qcow2-linux-fd0273c5033630b8673554cd39660435d1ab2ac4.tar.xz
kernel-qcow2-linux-fd0273c5033630b8673554cd39660435d1ab2ac4.zip
tcp: fix bug in listening_get_next()
commit a8b690f98baf9fb19 (tcp: Fix slowness in read /proc/net/tcp) introduced a bug in handling of SYN_RECV sockets. st->offset represents number of sockets found since beginning of listening_hash[st->bucket]. We should not reset st->offset when iterating through syn_table[st->sbucket], or else if more than ~25 sockets (if PAGE_SIZE=4096) are in SYN_RECV state, we exit from listening_get_next() with a too small st->offset Next time we enter tcp_seek_last_pos(), we are not able to seek past already found sockets. Reported-by: PK <runningdoglackey@yahoo.com> CC: Tom Herbert <therbert@google.com> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/iw.h')
0 files changed, 0 insertions, 0 deletions