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-next>] [day] [month] [year] [list]
Message-ID: <5ff4a1e50809010338o77fffec4w625ed48b3987d51@mail.gmail.com>
Date:	Mon, 1 Sep 2008 11:38:15 +0100
From:	"Matt Fleming" <mattjfleming@...glemail.com>
To:	linux-kernel@...r.kernel.org
Subject: ktime_set() does not check for nanoseconds > one second

Hi,

is it intentional that ktime_set() does not check whether the
nanoseconds argument is greater than the number of nanoseconds in a
second? I've run into a problem where a value of 1600000000
nanoseconds was passed as an argument to ktime_set() and the return
value was then used in a ktime_add() call, which returned an incorrect
result. Should the caller of ktime_set() make this check or is it
possible to move this logic in to the function itself?

Matt
--
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