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

2012-10-09 Thread John Stultz
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 Yep. Looks like this would trigger if you had NOZ idle for more then 4 se

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

2012-10-09 Thread Dan Carpenter
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 --- I'm not super familiar with this code so please review my work carefully. diff --git a/kernel/time/timekeeping.c b/ker