Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1338778

Re: [PATCH] rtc: Add an option to invalidate dates in 2038

From One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH] rtc: Add an option to invalidate dates in 2038
Date 2016-02-20 20:50 +0100
Message-ID <r4lHr-2li-7@gated-at.bofh.it> (permalink)
References <r4leq-23T-1@gated-at.bofh.it>
Organization Intel Corporation

Show all headers | View raw


On Sat, 20 Feb 2016 20:10:44 +0100
Alexandre Belloni <alexandre.belloni@free-electrons.com> wrote:

> hctosys is setting the system time from the kernel. This means that 32bit
> system can get their time set to a date after the 31bit time_t overflow.
> 
> This is currently an issue as userspace is not yet ready to handle those
> dates and may break. For example systemd's usage of timerfd shows that the
> timerfd will always fire immediately because it can't be set at a date
> after the current date.
> 
> The new RTC_INVALID_2038 option will make sure that date after 03:09:07 on
> Jan 19 2038 are invalid. This is 5 minutes before the 31bit overflow. This
> leaves enough time for userspace to react and is short enough to make the
> issue visible.

This is kind of pointless. You replace loading the RTC and discovering
the time isn't supported by your system with not loading he RTC and
discovering your system clock is magically and almost un-debuggably
wrong, and when something like NTP syncs it, breaks anyway.

The only way to deal with 2038 is to fix your user space. People need to
deal with reality, even if it's not all pink unicorns and rainbows.

Alan

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-20 20:20 +0100
  Re: [PATCH] rtc: Add an option to invalidate dates in 2038 One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-02-20 20:50 +0100
    Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-20 21:50 +0100
      Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Arnd Bergmann <arnd@arndb.de> - 2016-02-20 23:20 +0100
        Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-21 00:20 +0100
          Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-21 00:50 +0100
          Re: [PATCH] rtc: Add an option to invalidate dates in 2038 One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-02-21 18:30 +0100
            Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-22 14:10 +0100
              Re: [PATCH] rtc: Add an option to invalidate dates in 2038 One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-02-22 14:50 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Arnd Bergmann <arnd@arndb.de> - 2016-02-22 16:50 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-22 17:00 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Arnd Bergmann <arnd@arndb.de> - 2016-02-22 17:20 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-22 17:50 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 "Austin S. Hemmelgarn" <ahferroin7@gmail.com> - 2016-02-22 17:50 +0100
                Re: [PATCH] rtc: Add an option to invalidate dates in 2038 Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-02-22 18:10 +0100

csiph-web