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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Jul 2018 12:28:44 +0000 (14:28 +0200)
commitfb6b14663d56afabf86a3a2078c37a8d28fc718a
tree0240b6c4d35b7e0ff9c3b48274649ab4d54380d2
parenta3225a836e56487b32f21ff1a8099c731256d10a
net: dccp: switch rx_tstamp_last_feedback to monotonic clock

[ 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>
net/dccp/ccids/ccid3.c