tcp: fix an infinite loop in tcp_slow_start()
authorEric Dumazet <edumazet@google.com>
Sat, 2 Feb 2013 05:23:16 +0000 (05:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2013 21:00:25 +0000 (16:00 -0500)
commit973ec449bb4f2b8c514bacbcb4d9506fc31c8ce3
tree29d7b5de18aeff078f265f75a2a94be22254b851
parent59fa534874e6779082275d12d950e26c67c86498
tcp: fix an infinite loop in tcp_slow_start()

Since commit 9dc274151a548 (tcp: fix ABC in tcp_slow_start()),
a nul snd_cwnd triggers an infinite loop in tcp_slow_start()

Avoid this infinite loop and log a one time error for further
analysis. FRTO code is suspected to cause this bug.

Reported-by: Pasi Kärkkäinen <pasik@iki.fi>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_cong.c