Locked Re: GPS bug may cause PC time to revert to March 2002 on Oct 24th #Timesync #Timesync


William Smith
 

I just fixed my two NTPi boxes, both were running 3.22 (3.17 had some bugs that interfered with my code), but a simple:

git clone https://gitlab.com/gpsd/gpsd.git
cd gpsd
scons
scons udev-install

sorted it out and upgraded me to 3.23

Your Milage Will Vary, take a backup and know what you are doing.

FWIW: Raspian Buster still has 3.17 as the official 'latest' release, though it's 4 years old. 🤷‍♂️

73, Willie N1JBJ


On Oct 19, 2021, at 1:47 PM, Bill Somerville <g4wjs@...> wrote:

Hi Mike and all,

I checked my stratum 1 NTP server, which is a Raspberry Pi Raspberry Pi OS Linux system. It is using gpsd 3.17 (as is my 64-bit Rapberry Pi OS system) so I think a lot of home stratum 1 GPS time servers will be OK without patching. I would hope that the Debian package maintainers will skip gpsd 3.20 thru 3.22 if they decide to backport a newer version.

73
Bill
G4WJS.

On 19/10/2021 18:27, Michael Black via groups.io wrote:
Has been fixed in gpsd 3.23 and apparently bug is not present in 3.19 and earlier. 



Mike W9MDB 




On Tuesday, October 19, 2021, 10:10:29 AM CDT, W1RS <deflatermaus@...> wrote:


 

WSJT users typically utilize frequent time synchronization via upstream time servers on the web.  According to this article, "a nasty bug's been uncovered in GPSD that's going to pop up on October 24, 2021. If left unpatched, it's going to switch your time to some time in March 2012, and your system will crash."

 

NTP determines what time it is by synchronizing NTP servers with atomic clocks.  NTP is based on a hierarchy of levels, where each level is assigned a number called the stratum. Stratum 1 (primary) servers at the lowest level are directly synchronized to national time services via satellite, radio, or modem. Stratum 2 (secondary) servers are synchronized to stratum 1 servers and so on. Usually, NTP clients and servers connect to Stratum 2 servers.

 

How do stratum 1 servers sync up with clocks? Many of them use GPSD. This service daemon monitors one or more GPSes for location, course, velocity, and for our purposes, the most important element it tracks is time. This code, which is a mix of a linkable C service library, a C++ wrapper class, and a Python module, has, like all programs, its fair share of bugs.  Recently it was discovered that a bug in the time rollback (aka "GPS Week Rollover") sanity checking code scheduled for November 2038 will instead cause 1,024 to be subtracted from the October 24, 2021 week number. In other words, a lot of computers are in for a quick, sharp visit to March 2002.

 

So, check your systems now for this problem. And, if, like most of us, you're relying on someone upstream from you for the correct time, check with them to make sure they've taken care of this forthcoming trouble.

 

See more in the article....






Join {main@WSJTX.groups.io to automatically receive all group messages.