]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Jul 2018 12:25:52 +0000 (14:25 +0200)
commit29dbaecd2fbeda3f8dc76d2484807dec5b139aba
tree64c7343eb311377ef07f685de984f7fedf6e9284
parente41074e9ea4181b77ab02394d7c63e7995a800f9
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