lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 23 Aug 2016 23:11:07 -0700 (PDT)
From:   David Miller <davem@...emloft.net>
To:     soheil.kdev@...il.com
Cc:     netdev@...r.kernel.org, soheil@...gle.com
Subject: Re: [PATCH net] tun: fix transmit timestamp support

From: Soheil Hassas Yeganeh <soheil.kdev@...il.com>
Date: Tue, 23 Aug 2016 18:22:33 -0400

> From: Soheil Hassas Yeganeh <soheil@...gle.com>
> 
> Instead of using sock_tx_timestamp, use skb_tx_timestamp to record
> software transmit timestamp of a packet.
> 
> sock_tx_timestamp resets and overrides the tx_flags of the skb.
> The function is intended to be called from within the protocol
> layer when creating the skb, not from a device driver. This is
> inconsistent with other drivers and will cause issues for TCP.
> 
> In TCP, we intend to sample the timestamps for the last byte
> for each sendmsg/sendpage. For that reason, tcp_sendmsg calls
> tcp_tx_timestamp only with the last skb that it generates.
> For example, if a 128KB message is split into two 64KB packets
> we want to sample the SND timestamp of the last packet. The current
> code in the tun driver, however, will result in sampling the SND
> timestamp for both packets.
> 
> Also, when the last packet is split into smaller packets for
> retranmission (see tcp_fragment), the tun driver will record
> timestamps for all of the retransmitted packets and not only the
> last packet.
> 
> Fixes: eda297729171 (tun: Support software transmit time stamping.)
> Signed-off-by: Soheil Hassas Yeganeh <soheil@...gle.com>
> Signed-off-by: Francis Yan <francisyyan@...gle.com>

Applied and queued up for -stable, thanks.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ