Re: [PATCH] tcp: don't apply tsoffset if rcv_tsecr is zero

From: David Miller
Date: Thu Aug 29 2013 - 15:12:22 EST


From: Andrey Vagin <avagin@xxxxxxxxxx>
Date: Tue, 27 Aug 2013 12:21:55 +0400

> From: Andrew Vagin <avagin@xxxxxxxxxx>
>
> The zero value means that tsecr is not valid, so it's a special case.
>
> tsoffset is used to customize tcp_time_stamp for one socket.
> tsoffset is usually zero, it's used when a socket was moved from one
> host to another host.
>
> Currently this issue affects logic of tcp_rcv_rtt_measure_ts. Due to
> incorrect value of rcv_tsecr, tcp_rcv_rtt_measure_ts sets rto to
> TCP_RTO_MAX.
>
> Reported-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
> Signed-off-by: Andrey Vagin <avagin@xxxxxxxxxx>

Applied and queued up for -stable.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/