]> err.no Git - linux-2.6/commit
hrtimer: check relative timeouts for overflow
authorThomas Gleixner <tglx@linutronix.de>
Wed, 13 Feb 2008 08:20:43 +0000 (09:20 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 14 Feb 2008 21:08:30 +0000 (22:08 +0100)
commit5a7780e725d1bb4c3094fcc12f1c5c5faea1e988
tree50fc5cde427f3854d0b84ba1037fef3fb4693e11
parente760e716d47b48caf98da348368fd41b4a9b9e7e
hrtimer: check relative timeouts for overflow

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>
include/linux/ktime.h
kernel/futex.c
kernel/futex_compat.c
kernel/hrtimer.c
kernel/posix-timers.c