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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2013 18:48:34 +0000 (10:48 -0800)
commite90bb8480d31f54d1ccc12602e5800f7ff31dcc1
tree1471327a42a2a4ba662d0e35aeb2abc315b5fda5
parent3005cf62aac8c1b68c0201ead876b30a6c0f9ddd
tcp: fix an infinite loop in tcp_slow_start()

[ Upstream commit 973ec449bb4f2b8c514bacbcb4d9506fc31c8ce3 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_cong.c