twx-linux/kernel/time
Sasha Levin a078c6d0e6 ntp: Fix integer overflow when setting time
'long secs' is passed as divisor to div_s64, which accepts a 32bit
divisor. On 64bit machines that value is trimmed back from 8 bytes
back to 4, causing a divide by zero when the number is bigger than
(1 << 32) - 1 and all 32 lower bits are 0.

Use div64_long() instead.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Cc: johnstul@us.ibm.com
Link: http://lkml.kernel.org/r/1331829374-31543-2-git-send-email-levinsasha928@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2012-03-15 21:41:34 +01:00
..
alarmtimer.c alarmtimers: Fix time comparison 2011-12-06 11:38:32 +01:00
clockevents.c Revert "clockevents: Set noop handler in clockevents_exchange_device()" 2011-12-30 13:24:40 -08:00
clocksource.c Merge branch 'driver-core-next' into Linux 3.2 2012-01-06 11:42:52 -08:00
jiffies.c
Kconfig
Makefile
ntp.c ntp: Fix integer overflow when setting time 2012-03-15 21:41:34 +01:00
posix-clock.c
tick-broadcast.c clockevents: Leave the broadcast device in shutdown mode when not needed 2012-02-15 15:23:09 +01:00
tick-common.c
tick-internal.h
tick-oneshot.c
tick-sched.c nohz: Remove ts->Einidle checks before restarting the tick 2012-02-15 15:23:09 +01:00
timecompare.c
timeconv.c
timekeeping.c time: Move common updates to a function 2012-01-26 19:44:31 -08:00
timer_list.c
timer_stats.c