diff options
| author | Miroslav Lichvar <[email protected]> | 2019-06-18 15:47:13 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-06-22 09:28:53 +0000 |
| commit | d897a4ab11dc8a9fda50d2eccc081a96a6385998 (patch) | |
| tree | fade4e9ee1de5f30818462dc1f36e3d75dfd6e9b /drivers/infiniband/hw/mlx4/alias_GUID.c | |
| parent | alarmtimer: Fix kerneldoc comment for alarmtimer_suspend() (diff) | |
| download | kernel-d897a4ab11dc8a9fda50d2eccc081a96a6385998.tar.gz kernel-d897a4ab11dc8a9fda50d2eccc081a96a6385998.zip | |
ntp: Limit TAI-UTC offset
Don't allow the TAI-UTC offset of the system clock to be set by adjtimex()
to a value larger than 100000 seconds.
This prevents an overflow in the conversion to int, prevents the CLOCK_TAI
clock from getting too far ahead of the CLOCK_REALTIME clock, and it is
still large enough to allow leap seconds to be inserted at the maximum rate
currently supported by the kernel (once per day) for the next ~270 years,
however unlikely it is that someone can survive a catastrophic event which
slowed down the rotation of the Earth so much.
Reported-by: Weikang shi <[email protected]>
Signed-off-by: Miroslav Lichvar <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: John Stultz <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Stephen Boyd <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/infiniband/hw/mlx4/alias_GUID.c')
0 files changed, 0 insertions, 0 deletions
