From: David Miller <davem@davemloft.net>
To: ncardwell@google.com
Cc: eric.dumazet@gmail.com, netdev@vger.kernel.org, ycheng@google.com
Subject: Re: [PATCH v2] tcp: call tcp_replace_ts_recent() from tcp_ack()
Date: Fri, 19 Apr 2013 14:22:38 -0400 (EDT) [thread overview]
Message-ID: <20130419.142238.1129853033656607981.davem@davemloft.net> (raw)
In-Reply-To: <CADVnQynm+Je=FZ-X0fVT9zSpxdUjA+ANWmdAT0ziSNuJG=o1dg@mail.gmail.com>
From: Neal Cardwell <ncardwell@google.com>
Date: Fri, 19 Apr 2013 13:31:58 -0400
> On Fri, Apr 19, 2013 at 1:19 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
>> From: Eric Dumazet <edumazet@google.com>
>>
>> commit bd090dfc634d (tcp: tcp_replace_ts_recent() should not be called
>> from tcp_validate_incoming()) introduced a TS ecr bug in slow path
>> processing.
>>
>> 1 A > B P. 1:10001(10000) ack 1 <nop,nop,TS val 1001 ecr 200>
>> 2 B < A . 1:1(0) ack 1 win 257 <sack 9001:10001,TS val 300 ecr 1001>
>> 3 A > B . 1:1001(1000) ack 1 win 227 <nop,nop,TS val 1002 ecr 200>
>> 4 A > B . 1001:2001(1000) ack 1 win 227 <nop,nop,TS val 1002 ecr 200>
>>
>> (ecr 200 should be ecr 300 in packets 3 & 4)
>>
>> Problem is tcp_ack() can trigger send of new packets (retransmits),
>> reflecting the prior TSval, instead of the TSval contained in the
>> currently processed incoming packet.
>>
>> Fix this by calling tcp_replace_ts_recent() from tcp_ack() after the
>> checks, but before the actions.
>>
>> Reported-by: Yuchung Cheng <ycheng@google.com>
>> Signed-off-by: Eric Dumazet <edumazet@google.com>
>> Cc: Neal Cardwell <ncardwell@google.com>
>> ---
>> v2: use FLAG_UPDATE_TS_RECENT in tcp_rcv_state_process() as well
>
> Acked-by: Neal Cardwell <ncardwell@google.com>
Applied and queued up for -stable, thanks everyone.
prev parent reply other threads:[~2013-04-19 18:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 15:13 [PATCH] tcp: call tcp_replace_ts_recent() from tcp_ack() Eric Dumazet
2013-04-19 16:33 ` Neal Cardwell
2013-04-19 16:59 ` Eric Dumazet
2013-04-19 17:01 ` Eric Dumazet
2013-04-19 17:14 ` Neal Cardwell
2013-04-19 17:18 ` Eric Dumazet
2013-04-19 17:19 ` [PATCH v2] " Eric Dumazet
2013-04-19 17:31 ` Neal Cardwell
2013-04-19 18:22 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130419.142238.1129853033656607981.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=ycheng@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).