Files
Linux/kernel
John Stultz cee58483cf time: Move ktime_t overflow checking into timespec_valid_strict
Andreas Bombe reported that the added ktime_t overflow checking added to
timespec_valid in commit 4e8b14526c ("time: Improve sanity checking of
timekeeping inputs") was causing problems with X.org because it caused
timeouts larger then KTIME_T to be invalid.

Previously, these large timeouts would be clamped to KTIME_MAX and would
never expire, which is valid.

This patch splits the ktime_t overflow checking into a new
timespec_valid_strict function, and converts the timekeeping codes
internal checking to use this more strict function.

Reported-and-tested-by: Andreas Bombe <[email protected]>
Cc: Zhouping Liu <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: John Stultz <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2012-09-01 10:24:48 -07:00
..
…
2012-07-14 16:35:02 +04:00
…
2012-05-21 23:52:30 -04:00
…
2012-05-31 17:49:27 -07:00
2012-03-28 18:30:03 +01:00
…
2012-05-31 17:49:32 -07:00
…
2012-05-29 23:28:41 -04:00
…
…
2012-03-29 19:52:46 +08:00
…
…
2012-06-13 21:16:42 +02:00
…
…
2012-03-28 18:30:03 +01:00
2012-06-11 15:07:52 +02:00
2012-05-31 17:49:32 -07:00
2012-07-30 17:25:13 -07:00
2012-03-15 18:17:55 -07:00
…
…
2012-05-19 15:44:40 -06:00
…