https://github.com/torvalds/linux
Revision 92f63cd000059366af18712367216d96180e0ec0 authored by Martin Schwidefsky on 20 May 2006, 22:00:25 UTC, committed by Linus Torvalds on 21 May 2006, 19:59:21 UTC
The 32 bit unsigned substraction (next - jiffies) in stop_hz_timer can
overflow if jiffies gets advanced between next_timer_interrupt and the read
under the xtime lock.  The cast to a u64 then results in a large value
which causes the cpu to wait too long.  Fix this by casting next and
jiffies independently to u64 before subtracting them.

(Spotted by Zachary Amsden <zach@vmware.com>)

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 0662b71
History
Tip revision: 92f63cd000059366af18712367216d96180e0ec0 authored by Martin Schwidefsky on 20 May 2006, 22:00:25 UTC
[PATCH] s390: next_timer_interrupt overflow in stop_hz_timer
Tip revision: 92f63cd
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 462 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 68.5 KB
Makefile -rw-r--r-- 43.7 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top