]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
tcp: fix wraparound issue in tcp_lp
authorEric Dumazet <edumazet@google.com>
Mon, 1 May 2017 22:29:48 +0000 (15:29 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 20 Jun 2017 10:16:47 +0000 (12:16 +0200)
commit038797b064f67093d2532e38b7b25ae8f556b3b5
tree79833b707cc08c6ec7052479717e8e950c082198
parent5f8a14cf60a4916f1e9c6cc4b9b69212b515e786
tcp: fix wraparound issue in tcp_lp

BugLink: http://bugs.launchpad.net/bugs/1691418
[ Upstream commit a9f11f963a546fea9144f6a6d1a307e814a387e7 ]

Be careful when comparing tcp_time_stamp to some u32 quantity,
otherwise result can be surprising.

Fixes: 7c106d7e782b ("[TCP]: TCP Low Priority congestion control")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
net/ipv4/tcp_lp.c