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] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 7 Sep 2016 13:55:19 -0700
From:   Daniel Walker <danielwa@...co.com>
To:     Richard Cochran <richardcochran@...il.com>
Cc:     "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "xe-kernel@...ernal.cisco.com" <xe-kernel@...ernal.cisco.com>,
        Shabeena Shabeena -X "(sshabeen" - ARICENT TECHNOLOGIES
         MAURIITIUS LIMITED at "Cisco)" <sshabeen@...co.com>
Subject: Re: ptp

On 09/07/2016 01:48 PM, Richard Cochran wrote:
> On Wed, Sep 07, 2016 at 01:40:59PM -0700, Daniel Walker wrote:
>> There is a test (below) , which prevents negative nanosecond updates. The
>> code below would force a negative update to always return more than
>> NSEC_PER_SEC. It should be using abs() instead which would return the value
>> desired.
> No.  This:
>
> 	/*
> 	 * The value of a timeval is the sum of its fields, but the
> 	 * field tv_usec must always be non-negative.
> 	 */
>
> HTH,
> Richard


So the code only allows second granularity negative updates, or the 
seconds component is the only part which needs to actually be negative ?


Daniel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ