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  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:	Thu, 6 Mar 2014 11:53:19 -0500
From:	Chris Metcalf <>
To:	Henrik Austad <>
CC:	LKML <>,
	John Stultz <>,
	Mike Galbraith <>,
	Salman Qazi <>
Subject: Re: [PATCH] tile: avoid overflow in ns2cycles

On 3/4/2014 3:20 AM, Henrik Austad wrote:
> In commit 4cecf6d401a ("sched, x86: Avoid unnecessary overflow in
> sched_clock") and in recent patch "clocksource: avoid unnecessary
> overflow in cyclecounter_cyc2ns()",
> the mult-shift approach is replaced by 2 steps to avoid storing a large,
> intermediate value that could overflow.
> arch/tile/kernel/time.c has a similar pattern in cycles2ns, and this
> copies the same pattern in this function
> CC: John Stultz <>
> CC: Mike Galbraith <>
> CC: Salman Qazi <>
> Signed-off-by: Henrik Austad <>
> ---
>  arch/tile/kernel/time.c |   10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)

Thanks; taken into the tile tree (with some minor whitespace formatting tweaks).

Chris Metcalf, Tilera Corp.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists