Re: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-19:05.kqueue

2019-02-05 Thread Eugene Grosbein
06.02.2019 3:55, Ian Lepore wrote:

> So your problem was most likely the gps receiver making a bad choice
> before it had enough info to make a good choice. It's one of many
> reasons why an ntp server should have at least 3 (really, at least 5)
> peers, so it can reject obviously-insane data from a single source.
> Even when you use a gps to get really accurate local time, you should
> have a handful of network peers that can serve as sanity-checkers.

And I have and had that moment:

driftfile /var/db/ntpd.drift
server Time2.Stupi.SE   iburst maxpoll 9
server ntp1.sp.se   iburst maxpoll 9
server ntp1.mmo.netnod.se   iburst maxpoll 9
server ntp1.ptb.de  iburst maxpoll 9
server ntp1.ien.it  iburst maxpoll 9
server ntp1.sth.netnod.se   iburst maxpoll 9
server 127.127.1.0
fudge 127.127.1.0 stratum 10
# Had to comment out following 3 lines after the incident
#tos mindist 0.015
#server 127.127.20.1 mode 1 iburst maxpoll 9 prefer
#fudge 127.127.20.1 stratum 10 time1 0.000 time2 0.000 flag1 1 flag3 1 refid PPS
pool 0.freebsd.pool.ntp.org iburst
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
leapfile "/var/db/ntpd.leap-seconds.list"

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-19:05.kqueue

2019-02-05 Thread Ian Lepore
On Wed, 2019-02-06 at 03:46 +0700, Eugene Grosbein wrote:
> 06.02.2019 3:18, Ian Lepore wrote:
> 
> > > 2019, of course.  re@ does NOT make mistakes.  What you fail to
> > > realize is that NIST was using kqueue to check their atomic
> > > clock, and
> > > they lost the race.  Enjoy the rest of 2020.
> > > -Alan
> > > 
> > 
> > I think you meant that as a joke, but the reality is that NIST
> > measures
> > their atomic clocks using gear that runs FreeBSD (made by the
> > company I
> > work for). :)
> 
> I do not know if it is related or not: some months ago my FreeBSD
> 11.2-STABLE box
> having GPS received attached at /dev/cuau0 for my local ntpd stratum
> 1 server
> went to late of 2020 insanely. I was forced to comment GPS out of
> ntpd config to revive it
> but I lost all data in hundreds of local RRD databases and
> I found a race in libarchive being a reason why my backups had not
> most part of databases.
> 
> I still do not know exact reason and use Internet time source instead
> of local GPS.

The GPS week number rolls over in April 2019. At $work we have already
been seeing glitches in gps receivers as early as last June that were
caused by errors in the receivers' firmware that didn't handle the
upcoming rollover properly.

When a receiver first powers on, it has no real idea what gps era it's
in (right now we're in the 2nd, about to roll over to the 3rd). It has
to guess, which it mostly does the same way as software does that has
to deal with 2-digit years: make a decision based on the current date
being before/after some cutoff (like > 70 means 2070), and assume
everyone will be running newer firmware before that date arrives.

So your problem was most likely the gps receiver making a bad choice
before it had enough info to make a good choice. It's one of many
reasons why an ntp server should have at least 3 (really, at least 5)
peers, so it can reject obviously-insane data from a single source.
Even when you use a gps to get really accurate local time, you should
have a handful of network peers that can serve as sanity-checkers.

-- Ian

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-19:05.kqueue

2019-02-05 Thread Eugene Grosbein
06.02.2019 3:18, Ian Lepore wrote:

>> 2019, of course.  re@ does NOT make mistakes.  What you fail to
>> realize is that NIST was using kqueue to check their atomic clock, and
>> they lost the race.  Enjoy the rest of 2020.
>> -Alan
>>
> 
> I think you meant that as a joke, but the reality is that NIST measures
> their atomic clocks using gear that runs FreeBSD (made by the company I
> work for). :)

I do not know if it is related or not: some months ago my FreeBSD 11.2-STABLE 
box
having GPS received attached at /dev/cuau0 for my local ntpd stratum 1 server
went to late of 2020 insanely. I was forced to comment GPS out of ntpd config 
to revive it
but I lost all data in hundreds of local RRD databases and
I found a race in libarchive being a reason why my backups had not most part of 
databases.

I still do not know exact reason and use Internet time source instead of local 
GPS.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-19:05.kqueue

2019-02-05 Thread Ian Lepore
On Tue, 2019-02-05 at 13:00 -0700, Alan Somers wrote:
> On Tue, Feb 5, 2019 at 12:55 PM Shawn Webb  wrote:
> > 
> > On Wed, Jan 09, 2019 at 07:40:30PM +, FreeBSD Errata Notices wrote:
> > > -BEGIN PGP SIGNED MESSAGE-
> > > Hash: SHA512
> > > 
> > > =
> > > FreeBSD-EN-19:05.kqueue Errata 
> > > Notice
> > >   The FreeBSD 
> > > Project
> > > 
> > > Topic:  kqueue race condition and kernel panic
> > > 
> > > Category:   core
> > > Module: kqueue
> > > Announced:  2019-01-09
> > > Credits:Mark Johnston
> > > Affects:FreeBSD 11.2
> > > Corrected:  2019-11-24 17:11:47 UTC (stable/11, 11.2-STABLE)
> > 
> > Corrected November of 2018 or 2019? ;)
> 
> 2019, of course.  re@ does NOT make mistakes.  What you fail to
> realize is that NIST was using kqueue to check their atomic clock, and
> they lost the race.  Enjoy the rest of 2020.
> -Alan
> 

I think you meant that as a joke, but the reality is that NIST measures
their atomic clocks using gear that runs FreeBSD (made by the company I
work for). :)

-- Ian


___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-19:05.kqueue

2019-02-05 Thread Alan Somers
On Tue, Feb 5, 2019 at 12:55 PM Shawn Webb  wrote:
>
> On Wed, Jan 09, 2019 at 07:40:30PM +, FreeBSD Errata Notices wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA512
> >
> > =
> > FreeBSD-EN-19:05.kqueue Errata 
> > Notice
> >   The FreeBSD 
> > Project
> >
> > Topic:  kqueue race condition and kernel panic
> >
> > Category:   core
> > Module: kqueue
> > Announced:  2019-01-09
> > Credits:Mark Johnston
> > Affects:FreeBSD 11.2
> > Corrected:  2019-11-24 17:11:47 UTC (stable/11, 11.2-STABLE)
>
> Corrected November of 2018 or 2019? ;)

2019, of course.  re@ does NOT make mistakes.  What you fail to
realize is that NIST was using kqueue to check their atomic clock, and
they lost the race.  Enjoy the rest of 2020.
-Alan
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-19:05.kqueue

2019-02-05 Thread Shawn Webb
On Wed, Jan 09, 2019 at 07:40:30PM +, FreeBSD Errata Notices wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
> 
> =
> FreeBSD-EN-19:05.kqueue Errata Notice
>   The FreeBSD Project
> 
> Topic:  kqueue race condition and kernel panic
> 
> Category:   core
> Module: kqueue
> Announced:  2019-01-09
> Credits:Mark Johnston
> Affects:FreeBSD 11.2
> Corrected:  2019-11-24 17:11:47 UTC (stable/11, 11.2-STABLE)

Corrected November of 2018 or 2019? ;)

-- 
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

Tor-ified Signal:+1 443-546-8752
Tor+XMPP+OTR:latt...@is.a.hacker.sx
GPG Key ID:  0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE


signature.asc
Description: PGP signature


Re: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-19:05.kqueue

2019-01-09 Thread Ed Maste
On Wed, 9 Jan 2019 at 15:23, Kurt Jaeger  wrote:
>
> Hi!
>
> > > Credits:Mark Johnston
> > > Affects:FreeBSD 11.2
> > > Corrected:  2019-11-24 17:11:47 UTC (stable/11, 11.2-STABLE)
> >
> > Should this be 2018 or is this yet in the future?
>
> And why does fbsd-update fail like this:
>
> The update metadata is correctly signed, but
> failed an integrity check.
> Cowardly refusing to proceed any further.

It appears the updates for 12.0 are broken - under investigation.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-19:05.kqueue

2019-01-09 Thread Kurt Jaeger
Hi!

> > Credits:Mark Johnston
> > Affects:FreeBSD 11.2
> > Corrected:  2019-11-24 17:11:47 UTC (stable/11, 11.2-STABLE)
> 
> Should this be 2018 or is this yet in the future?

And why does fbsd-update fail like this:

The update metadata is correctly signed, but
failed an integrity check.
Cowardly refusing to proceed any further.

-- 
p...@freebsd.org +49 171 3101372 One year to go !
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-19:05.kqueue

2019-01-09 Thread Ed Maste
On Wed, 9 Jan 2019 at 15:03, Cy Schubert  wrote:
>
> > Corrected:  2019-11-24 17:11:47 UTC (stable/11, 11.2-STABLE)
>
> Should this be 2018 or is this yet in the future?

Yes, this should be 2018-11-24. Gordon's updating it.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-19:05.kqueue

2019-01-09 Thread Cy Schubert
In message <20190109194030.dfe3a8...@freefall.freebsd.org>, FreeBSD 
Errata Noti
ces writes:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> =
> FreeBSD-EN-19:05.kqueue Errata Notice
>   The FreeBSD Project
>
> Topic:  kqueue race condition and kernel panic
>
> Category:   core
> Module: kqueue
> Announced:  2019-01-09
> Credits:Mark Johnston
> Affects:FreeBSD 11.2
> Corrected:  2019-11-24 17:11:47 UTC (stable/11, 11.2-STABLE)

Should this be 2018 or is this yet in the future?

> 2019-01-09 18:57:38 UTC (releng/11.2, 11.2-RELEASE-p8)
>
[...]


-- 
Cheers,
Cy Schubert 
FreeBSD UNIX: Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"