tcp: do not leak non zero tstamp in output packets
authorEric Dumazet <edumazet@google.com>
Wed, 5 Mar 2014 22:08:38 +0000 (14:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Mar 2014 19:32:57 +0000 (14:32 -0500)
commit219626924222b6b41bf2264896b34a6abaaeecf0
treeda1dc3b24f282e705f32e317908afae415e506fc
parent28f084cca35a73698568d8c060bbb98193021db5
tcp: do not leak non zero tstamp in output packets

Usage of skb->tstamp should remain private to TCP stack
(only set on packets on write queue, not on cloned ones)

Otherwise, packets given to loopback interface with a non null tstamp
can confuse netif_rx() / net_timestamp_check()

Other possibility would be to clear tstamp in loopback_xmit(),
as done in skb_scrub_packet()

Fixes: 740b0f1841f6 ("tcp: switch rtt estimations to usec resolution")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c