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]
Message-ID: <5ff4a1e50809010633q6d69bcabtac734d2d8e2c6d88@mail.gmail.com>
Date:	Mon, 1 Sep 2008 14:33:27 +0100
From:	"Matt Fleming" <mattjfleming@...glemail.com>
To:	"Thomas Gleixner" <tglx@...utronix.de>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: ktime_set() does not check for nanoseconds > one second

2008/9/1 Thomas Gleixner <tglx@...utronix.de>:
> On Mon, 1 Sep 2008, Matt Fleming wrote:
>
>> 2008/9/1 Thomas Gleixner <tglx@...utronix.de>:
>> >
>> > Won't work with arbitrary numbers. i.e. >= 2* NSEC_PER_SEC. Looking at
>> > it, I'm even less convinced that it is a good idea.
>> >
>> >      tglx
>> >
>>
>> Do you have another suggestion? Or should I just account for the >= 1
>> sec case in the calling code?
>
> If you use runtime generated nsec values, why don't you use
> ktime_add_ns() and feed the nsec value into it ?
>

Hmm.. good point. I'll do it that way. Thanks for your help Thomas.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ