summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nfnetlink_cthelper.c
diff options
context:
space:
mode:
authorEric Dumazet2017-03-16 23:43:19 +0100
committerDavid S. Miller2017-03-17 05:37:13 +0100
commitdb7f00b8dba6d687b6ab1f2e9309acfd214fcb4b (patch)
tree63eedb1bec5da3449c41e53e56fea4eee4f02c5e /net/netfilter/nfnetlink_cthelper.c
parentnetvsc: fix race during initialization (diff)
downloadkernel-qcow2-linux-db7f00b8dba6d687b6ab1f2e9309acfd214fcb4b.tar.gz
kernel-qcow2-linux-db7f00b8dba6d687b6ab1f2e9309acfd214fcb4b.tar.xz
kernel-qcow2-linux-db7f00b8dba6d687b6ab1f2e9309acfd214fcb4b.zip
tcp: tcp_get_info() should read tcp_time_stamp later
Commit b369e7fd41f7 ("tcp: make TCP_INFO more consistent") moved lock_sock_fast() earlier in tcp_get_info() This has the minor effect that jiffies value being sampled at the beginning of tcp_get_info() is more likely to be off by one, and we report big tcpi_last_data_sent values (like 0xFFFFFFFF). Since we lock the socket, fetching tcp_time_stamp right before doing the jiffies_to_msecs() calls is enough to remove these wrong values. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/nfnetlink_cthelper.c')
0 files changed, 0 insertions, 0 deletions