]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: initialize icsk_ack.lrcvtime at session start time
authorEric Dumazet <edumazet@google.com>
Wed, 22 Mar 2017 15:10:21 +0000 (08:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2017 07:44:02 +0000 (09:44 +0200)
commitd3add547afd39289eeefc674755cd3014806916b
treecf6aaa9bbf731b0f9b05ff3b73cb6846540f1151
parenta3639645a94b3b05e17ffd79115d2d709396543a
tcp: initialize icsk_ack.lrcvtime at session start time

[ Upstream commit 15bb7745e94a665caf42bfaabf0ce062845b533b ]

icsk_ack.lrcvtime has a 0 value at socket creation time.

tcpi_last_data_recv can have bogus value if no payload is ever received.

This patch initializes icsk_ack.lrcvtime for active sessions
in tcp_finish_connect(), and for passive sessions in
tcp_create_openreq_child()

Signed-off-by: Eric Dumazet <edumazet@google.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>
net/ipv4/tcp_input.c
net/ipv4/tcp_minisocks.c