android_kernel_google_msm/include
John Stultz c15dcac835 time: Move ktime_t overflow checking into timespec_valid_strict
commit cee58483cf upstream

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 <aeb@debian.org>
Cc: Zhouping Liu <zliu@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-25 20:00:19 +03:00
..
acpi
asm-generic
crypto
drm
keys
linux time: Move ktime_t overflow checking into timespec_valid_strict 2017-08-25 20:00:19 +03:00
math-emu
media msm: camera: sensor: Validate eeprom_name string length 2017-06-26 21:24:23 +03:00
misc
mtd
net unix: correctly track in-flight fds in sending process user_struct 2017-06-26 16:09:55 +03:00
pcmcia
rdma
rxrpc
scsi [SCSI] libsas, libata: fix start of life for a sas ata_port 2012-04-23 12:11:47 +01:00
sound ALSA: Remove transfer_ack_{begin,end} callbacks from struct snd_pcm_runtime 2017-03-07 05:44:05 +00:00
target
trace kthread: Prevent unpark race which puts threads on the wrong cpu 2016-10-29 23:12:39 +08:00
video
xen
Kbuild