diff options
author | Eric Dumazet <edumazet@google.com> | 2019-02-15 13:36:20 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-23 09:04:25 +0100 |
commit | 191d1615f20622f3ab0179d5db92ec30aca3340c (patch) | |
tree | bea91bb9646faaa1ed569670a94532a70f974c9a /drivers/net | |
parent | 2440ee336c4fb6c6e6462f8a73d9951a91b7e795 (diff) | |
download | linux-stable-191d1615f20622f3ab0179d5db92ec30aca3340c.tar.gz linux-stable-191d1615f20622f3ab0179d5db92ec30aca3340c.tar.bz2 linux-stable-191d1615f20622f3ab0179d5db92ec30aca3340c.zip |
tcp: clear icsk_backoff in tcp_write_queue_purge()
[ Upstream commit 04c03114be82194d4a4858d41dba8e286ad1787c ]
soukjin bae reported a crash in tcp_v4_err() handling
ICMP_DEST_UNREACH after tcp_write_queue_head(sk)
returned a NULL pointer.
Current logic should have prevented this :
if (seq != tp->snd_una || !icsk->icsk_retransmits ||
!icsk->icsk_backoff || fastopen)
break;
Problem is the write queue might have been purged
and icsk_backoff has not been cleared.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: soukjin bae <soukjin.bae@samsung.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions