]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: dccp: switch rx_tstamp_last_feedback to monotonic clock
authorEric Dumazet <edumazet@google.com>
Fri, 22 Jun 2018 13:44:15 +0000 (06:44 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Feb 2019 04:53:01 +0000 (04:53 +0000)
commit530730cf615d63afe858444b4fa3f09e78fd2d32
tree222644647885d7fa4c14d723ec678bed89eec765
parent4bbd94dcc69a4e3ac9c79bb97d84d49b78697cef
net: dccp: switch rx_tstamp_last_feedback to monotonic clock

BugLink: http://bugs.launchpad.net/bugs/1811877
[ Upstream commit 0ce4e70ff00662ad7490e545ba0cd8c1fa179fca ]

To compute delays, better not use time of the day which can
be changed by admins or malicious programs.

Also change ccid3_first_li() to use s64 type for delta variable
to avoid potential overflows.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Cc: dccp@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/dccp/ccids/ccid3.c