On Wed, Dec 16, 2015 at 03:53 +0000, Ian Mcwilliam wrote:
> 
> Disable sensors * in ntpd.conf and time is good again.
> 
> I see this on boot up when things go strange.
> 
> hw.sensors.vmt0.timedelta0=1450237689.498077 secs, OK, Tue Nov 29 18:36:38.371
> 
> I wonder if it's related to this change? Thoughts?
> 

Bah, I've noticed that, but forgot to mention this to mpi@.
Martin, what has prompted you to change the behaviour here?
It's the only spot in that commit that has changed the
mountroot to a startup hook.

> ===================================================================
> RCS file: /cvs/src/sys/dev/pv/vmt.c,v
> retrieving revision 1.5
> retrieving revision 1.6
> diff -u -r1.5 -r1.6
> --- src/sys/dev/pv/vmt.c      2015/08/27 19:51:36     1.5
> +++ src/sys/dev/pv/vmt.c      2015/12/11 16:07:01     1.6
> @@ -1,4 +1,4 @@
> -/*   $OpenBSD: vmt.c,v 1.5 2015/08/27 19:51:36 deraadt Exp $ */
> +/*   $OpenBSD: vmt.c,v 1.6 2015/12/11 16:07:01 mpi Exp $ */
>  
>  /*
>   * Copyright (c) 2007 David Crawshaw <da...@zentus.com>
> @@ -365,7 +365,7 @@
>       sensordev_install(&sc->sc_sensordev);
>  
>       timeout_set(&sc->sc_tick, vmt_tick, sc);
> -     if (mountroothook_establish(vmt_tick, sc) == NULL)
> +     if (startuphook_establish(vmt_tick, sc) == NULL)
>               DPRINTF("%s: unable to establish tick\n", DEVNAME(sc));
>  
>       timeout_set(&sc->sc_tclo_tick, vmt_tclo_tick, sc);
> 
> 
> Ian McWilliam
> 
> ________________________________________
> From: Ian Mcwilliam
> Sent: Tuesday, 15 December 2015 12:04 PM
> To: tech@openbsd.org
> Subject: ntpd setting date incorrectly
> 
> Not sure what has changed in the last couple of days but apparently I need to 
> get back from the future.
> 
> This is an OpenBSD VM running under VMWare Fusion Professional Version 8.0.2 
> (3164312) Mac OS X 10.11.2
> 
> 
> Dec 14 17:22:44 ianm-openbsd ntpd[13773]: peer 121.0.0.41 now valid
> Dec 14 17:22:46 ianm-openbsd ntpd[13773]: peer 192.189.54.17 now valid
> Dec 14 17:22:49 ianm-openbsd ntpd[13773]: peer 54.252.165.245 now valid
> Dec 14 17:22:49 ianm-openbsd ntpd[13773]: peer 54.252.129.186 now valid
> Dec 14 17:23:44 ianm-openbsd ntpd[19417]: adjusting local clock by 45.252476s
> 
> Machine shutdown
> 
> Machine rebooted next day
> 
> Dec 15 09:26:00 ianm-openbsd ntpd[1991]: ntp engine ready
> 
> time correct until
> 
> Nov 27 07:52:36 ianm-openbsd ntpd[21778]: set local clock to Sun Nov 27 
> 07:52:36 AEDT 2061 (offset 1450131996.187864s)
> Nov 27 07:52:36 ianm-openbsd savecore: no core dump
> Nov 27 07:52:37 ianm-openbsd apmd: battery status: absent. external power 
> status: connected. estimated battery life 0%
> Nov 27 07:53:56 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131950.806132s
> Nov 27 07:55:26 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131950.410569s
> Nov 27 07:56:56 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131949.960758s
> Nov 27 07:58:26 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131949.511029s
> Nov 27 07:59:56 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131949.061268s
> Nov 27 08:01:26 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131948.611426s
> Nov 27 08:02:56 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131948.161660s
> Nov 27 08:04:26 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131947.711849s
> Nov 27 08:05:56 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131947.262024s
> Nov 27 08:07:26 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131946.812191s
> Nov 27 08:07:32 ianm-openbsd dhclient[21622]: DHCPDISCOVER on em0 - interval 1
> Nov 27 08:07:33 ianm-openbsd dhclient[21622]: DHCPDISCOVER on em0 - interval 1
> Nov 27 08:07:33 ianm-openbsd dhclient[21622]: DHCPOFFER from 172.16.28.254 
> (00:50:56:f1:c4:f7)
> Nov 27 08:07:33 ianm-openbsd dhclient[21622]: DHCPREQUEST on em0 to 
> 255.255.255.255
> Nov 27 08:07:33 ianm-openbsd dhclient[21622]: DHCPACK from 172.16.28.254 
> (00:50:56:f1:c4:f7)
> Nov 27 08:07:33 ianm-openbsd dhclient[21622]: bound to 172.16.28.141 -- 
> renewal in 900 seconds.
> Nov 27 08:08:56 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131946.362273s
> 
> manually setting the date/time shows that things appear fine until next 
> reboot.
> 
> Nov 27 08:57:27 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131932.766352s
> Nov 27 08:58:57 ianm-openbsd ntpd[11805]: adjusting local clock by 
> -1450131932.316650s
> Dec 15 10:34:21 ianm-openbsd ntpd[11805]: adjusting local clock by 33.548572s
> Dec 15 10:34:21 ianm-openbsd ntpd[1991]: clock is now synced
> Dec 15 10:35:52 ianm-openbsd ntpd[11805]: adjusting local clock by 33.107247s
> Dec 15 10:35:52 ianm-openbsd ntpd[1991]: clock is now unsynced
> Dec 15 10:37:21 ianm-openbsd ntpd[11805]: adjusting local clock by 32.662256s
> Dec 15 10:38:51 ianm-openbsd ntpd[11805]: adjusting local clock by 32.212314s
> Dec 15 10:40:21 ianm-openbsd ntpd[11805]: adjusting local clock by 31.762446s
> Dec 15 10:41:38 ianm-openbsd ntpd[1991]: constraint reply from 74.125.237.17: 
> offset 30.905949
> Dec 15 10:41:38 ianm-openbsd ntpd[1991]: constraint reply from 74.125.237.20: 
> offset 30.905572
> Dec 15 10:41:38 ianm-openbsd ntpd[1991]: constraint reply from 74.125.237.19: 
> offset 30.903128
> Dec 15 10:41:38 ianm-openbsd ntpd[1991]: constraint reply from 74.125.237.18: 
> offset 30.900721
> Dec 15 10:41:38 ianm-openbsd ntpd[1991]: constraint reply from 74.125.237.16: 
> offset 30.823298
> Dec 15 10:41:51 ianm-openbsd ntpd[11805]: adjusting local clock by 31.312487s
> Dec 15 10:41:55 ianm-openbsd ntpd[1991]: peer 121.0.0.42 now valid
> Dec 15 10:41:57 ianm-openbsd ntpd[1991]: peer 110.21.107.139 now valid
> Dec 15 10:41:58 ianm-openbsd ntpd[1991]: peer 202.60.94.11 now valid
> Dec 15 10:41:58 ianm-openbsd ntpd[1991]: peer 60.241.92.80 now valid
> Dec 15 10:42:54 ianm-openbsd ntpd[11805]: adjusting local clock by 30.997486s
> 
> 
> ntpd_flags="-s"
> 
> ntpd.conf
> 
> #servers pool.ntp.org
> #servers 0.au.pool.ntp.org
> servers au.pool.ntp.org
> 
> sensor *
> constraints from "https://www.google.com";
> 
> 
> OpenBSD 5.8-current (GENERIC.MP) #0: Mon Dec 14 10:37:32 AEDT 2015
>     r...@ianm-openbsd.xxxx.edu.au:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3141468160 (2995MB)
> avail mem = 3042197504 (2901MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (242 entries)
> bios0: vendor Phoenix Technologies LTD version "6.00" date 07/02/2015
> bios0: VMware, Inc. VMware Virtual Platform
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP BOOT APIC MCFG SRAT HPET WAET
> acpi0: wakeup devices PCI0(S3) USB_(S1) P2P0(S3) S1F0(S3) S2F0(S3) S3F0(S3) 
> S4F0(S3) S5F0(S3) S6F0(S3) S7F0(S3) S8F0(S3) S9F0(S3) S10F(S3) S11F(S3) 
> S12F(S3) S13F(S3) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3588.68 MHz
> cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,MMX,FXSR,SSE,SSE2,SS,SSE3,PCLMUL,VMX,SSSE3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 65MHz
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 3548.33 MHz
> cpu1: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,MMX,FXSR,SSE,SSE2,SS,SSE3,PCLMUL,VMX,SSSE3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 0, package 2
> ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 24 pins
> acpimcfg0 at acpi0 addr 0xf0000000, bus 0-127
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpicpu0 at acpi0: C1(@1 halt!)
> acpicpu1 at acpi0: C1(@1 halt!)
> acpibat0 at acpi0: BAT1 not present
> acpibat1 at acpi0: BAT2 not present
> acpiac0 at acpi0: AC unit online
> acpibtn0 at acpi0: SLPB
> acpibtn1 at acpi0: LID_
> pvbus0 at mainbus0: VMware
> vmt0 at pvbus0
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x01
> ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x01
> pci1 at ppb0 bus 1
> pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x08
> pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 
> configured to compatibility, channel 1 configured to compatibility
> pciide0: channel 0 disabled (no drives)
> atapiscsi0 at pciide0 channel 1 drive 0
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <NECVMWar, VMware IDE CDR10, 1.00> ATAPI 
> 5/cdrom removable
> cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
> piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x08: SMBus 
> disabled
> "VMware VMCI" rev 0x10 at pci0 dev 7 function 7 not configured
> vga1 at pci0 dev 15 function 0 "VMware SVGA II" rev 0x00
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> mpi0 at pci0 dev 16 function 0 "Symbios Logic 53c1030" rev 0x01: apic 1 int 17
> mpi0: 0, firmware 1.3.41.32
> scsibus2 at mpi0: 16 targets, initiator 7
> sd0 at scsibus2 targ 0 lun 0: <VMware,, VMware Virtual S, 1.0> SCSI2 0/direct 
> fixed
> sd0: 33792MB, 512 bytes/sector, 69206016 sectors
> mpi0: target 0 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
> ppb1 at pci0 dev 17 function 0 "VMware PCI" rev 0x02
> pci2 at ppb1 bus 2
> uhci0 at pci2 dev 0 function 0 "VMware UHCI" rev 0x00: apic 1 int 18
> em0 at pci2 dev 1 function 0 "Intel 82545EM" rev 0x01: apic 1 int 19, address 
> 00:0c:29:05:2b:ba
> eap0 at pci2 dev 2 function 0 "Ensoniq AudioPCI97" rev 0x02: apic 1 int 16
> ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3)
> audio0 at eap0
> midi0 at eap0: <AudioPCI MIDI UART>
> ehci0 at pci2 dev 3 function 0 "VMware EHCI" rev 0x00: apic 1 int 17
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "VMware EHCI root hub" rev 2.00/1.00 addr 1
> usb1 at uhci0: USB revision 1.0
> uhub1 at usb1 "VMware UHCI root hub" rev 1.00/1.00 addr 1
> ppb2 at pci0 dev 21 function 0 "VMware PCIE" rev 0x01
> pci3 at ppb2 bus 3
> ppb3 at pci0 dev 21 function 1 "VMware PCIE" rev 0x01
> pci4 at ppb3 bus 4
> ppb4 at pci0 dev 21 function 2 "VMware PCIE" rev 0x01
> pci5 at ppb4 bus 5
> ppb5 at pci0 dev 21 function 3 "VMware PCIE" rev 0x01
> pci6 at ppb5 bus 6
> ppb6 at pci0 dev 21 function 4 "VMware PCIE" rev 0x01
> pci7 at ppb6 bus 7
> ppb7 at pci0 dev 21 function 5 "VMware PCIE" rev 0x01
> pci8 at ppb7 bus 8
> ppb8 at pci0 dev 21 function 6 "VMware PCIE" rev 0x01
> pci9 at ppb8 bus 9
> ppb9 at pci0 dev 21 function 7 "VMware PCIE" rev 0x01
> pci10 at ppb9 bus 10
> ppb10 at pci0 dev 22 function 0 "VMware PCIE" rev 0x01
> pci11 at ppb10 bus 11
> ppb11 at pci0 dev 22 function 1 "VMware PCIE" rev 0x01
> pci12 at ppb11 bus 12
> ppb12 at pci0 dev 22 function 2 "VMware PCIE" rev 0x01
> pci13 at ppb12 bus 13
> ppb13 at pci0 dev 22 function 3 "VMware PCIE" rev 0x01
> pci14 at ppb13 bus 14
> ppb14 at pci0 dev 22 function 4 "VMware PCIE" rev 0x01
> pci15 at ppb14 bus 15
> ppb15 at pci0 dev 22 function 5 "VMware PCIE" rev 0x01
> pci16 at ppb15 bus 16
> ppb16 at pci0 dev 22 function 6 "VMware PCIE" rev 0x01
> pci17 at ppb16 bus 17
> ppb17 at pci0 dev 22 function 7 "VMware PCIE" rev 0x01
> pci18 at ppb17 bus 18
> ppb18 at pci0 dev 23 function 0 "VMware PCIE" rev 0x01
> pci19 at ppb18 bus 19
> ppb19 at pci0 dev 23 function 1 "VMware PCIE" rev 0x01
> pci20 at ppb19 bus 20
> ppb20 at pci0 dev 23 function 2 "VMware PCIE" rev 0x01
> pci21 at ppb20 bus 21
> ppb21 at pci0 dev 23 function 3 "VMware PCIE" rev 0x01
> pci22 at ppb21 bus 22
> ppb22 at pci0 dev 23 function 4 "VMware PCIE" rev 0x01
> pci23 at ppb22 bus 23
> ppb23 at pci0 dev 23 function 5 "VMware PCIE" rev 0x01
> pci24 at ppb23 bus 24
> ppb24 at pci0 dev 23 function 6 "VMware PCIE" rev 0x01
> pci25 at ppb24 bus 25
> ppb25 at pci0 dev 23 function 7 "VMware PCIE" rev 0x01
> pci26 at ppb25 bus 26
> ppb26 at pci0 dev 24 function 0 "VMware PCIE" rev 0x01
> pci27 at ppb26 bus 27
> ppb27 at pci0 dev 24 function 1 "VMware PCIE" rev 0x01
> pci28 at ppb27 bus 28
> ppb28 at pci0 dev 24 function 2 "VMware PCIE" rev 0x01
> pci29 at ppb28 bus 29
> ppb29 at pci0 dev 24 function 3 "VMware PCIE" rev 0x01
> pci30 at ppb29 bus 30
> ppb30 at pci0 dev 24 function 4 "VMware PCIE" rev 0x01
> pci31 at ppb30 bus 31
> ppb31 at pci0 dev 24 function 5 "VMware PCIE" rev 0x01
> pci32 at ppb31 bus 32
> ppb32 at pci0 dev 24 function 6 "VMware PCIE" rev 0x01
> pci33 at ppb32 bus 33
> ppb33 at pci0 dev 24 function 7 "VMware PCIE" rev 0x01
> pci34 at ppb33 bus 34
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> wsmouse0 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> uhidev0 at uhub1 port 1 configuration 1 interface 0 "VMware VMware Virtual 
> USB Mouse" rev 1.10/1.02 addr 2
> uhidev0: iclass 3/0
> ums0 at uhidev0: 16 buttons, Z and W dir
> wsmouse1 at ums0 mux 0
> uhidev1 at uhub1 port 1 configuration 1 interface 1 "VMware VMware Virtual 
> USB Mouse" rev 1.10/1.02 addr 2
> uhidev1: iclass 3/0
> ums1 at uhidev1: 16 buttons, Z and W dir
> wsmouse2 at ums1 mux 0
> uhub2 at uhub1 port 2 "VMware VMware Virtual USB Hub" rev 1.10/1.00 addr 3
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on sd0a (66043ec868a376cc.a) swap on sd0b dump on sd0b
> 
> 
> Ian McWilliam

Reply via email to