Re: [patch] time: cast ->raw_interval to u64 to avoid shift overflow

From: John Stultz
Date: Tue Oct 09 2012 - 15:18:00 EST


On 10/09/2012 12:18 AM, Dan Carpenter wrote:
We fixed a bunch of integer overflows in timekeeping code during the 3.6
cycle. I did an audit based on that and found this potential overflow.

Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Yep. Looks like this would trigger if you had NOZ idle for more then 4 seconds.

Thanks for the audit, and sending this in!

Thomas: Mind queuing this? Probably should be marked for stable too.

Acked-by: John Stultz <johnstul@xxxxxxxxxx>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/