tcp: fix overflow in __tcp_retransmit_skb()
authorEric Dumazet <edumazet@google.com>
Thu, 15 Sep 2016 15:12:33 +0000 (08:12 -0700)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Feb 2017 10:03:46 +0000 (11:03 +0100)
commit93522d310c31a54973def2a6ea15d3b418045f49
treed39d72696b3931cd414f3becc33020ceaee7188b
parent1c50d3ae6df65a82fe814d9c368dc13e9cd8271f
tcp: fix overflow in __tcp_retransmit_skb()

commit ffb4d6c8508657824bcef68a36b2a0f9d8c09d10 upstream.

If a TCP socket gets a large write queue, an overflow can happen
in a test in __tcp_retransmit_skb() preventing all retransmits.

The flow then stalls and resets after timeouts.

Tested:

sysctl -w net.core.wmem_max=1000000000
netperf -H dest -- -s 1000000000

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/ipv4/tcp_output.c