]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hrtimer: check relative timeouts for overflow
authorThomas Gleixner <tglx@linutronix.de>
Wed, 20 Feb 2008 00:03:00 +0000 (01:03 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Feb 2008 00:18:57 +0000 (16:18 -0800)
commit85d1617924607c1311962546bb55367b9edb4ca6
tree362cf573e037cebae29c915c300e473f282b2dc9
parent227db665f6f946d376d48785b08d2b0cd1f21aad
hrtimer: check relative timeouts for overflow

commit: 5a7780e725d1bb4c3094fcc12f1c5c5faea1e988

Various user space callers ask for relative timeouts. While we fixed
that overflow issue in hrtimer_start(), the sites which convert
relative user space values to absolute timeouts themself were uncovered.

Instead of putting overflow checks into each place add a function
which does the sanity checking and convert all affected callers to use
it.

Thanks to Frans Pop, who reported the problem and tested the fixes.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
Tested-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/ktime.h
kernel/futex.c
kernel/futex_compat.c
kernel/hrtimer.c
kernel/posix-timers.c