https://bugs.winehq.org/show_bug.cgi?id=54129
Bug ID: 54129 Summary: Disable Internet time synchronization in all Windows configurations Product: Wine-Testbot Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: unknown Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
Created attachment 73660 --> https://bugs.winehq.org/attachment.cgi?id=73660 kernel32:process: Dump the Internet time synchronization config if passed w32time.
Internet time synchronization is suspected to be responsible for sending WM_TIMECHANGE messages which break some tests (see bug 53273, bug 53516, bug 54128). The TestBot has code to disable Internet time synchronization but this requires a snapshot update.
The following test configurations have Internet time synchronization enabled: w7u* -> Service start = 0x3 Manual + Type = NTP w7pro64 -> Service start = 0x3 Manual + Type = NTP w8* -> Service start = 0x3 Manual + Type = NTP w864* -> Service start = 0x3 Manual + Type = NTP w1064v2009 -> Service start = 0x2 Automatic (Delayed) + Type = NoSync w10pro64v2004 -> Service start = 0x3 Manual + Type = NTP w10pro64* -> Service start = 0x2 Automatic (Delayed) + Type = NTP w1164_amd -> Service start = 0x2 Automatic (Delayed) + Type = NoSync
Those that have Type = NoSync are probably okay. They look like partially failed attempts at disabling time synchronization, or cases where something tried to re-enable time synchronization.
These are okay: w1064* -> Service start = 0x4 Disabled + Type = NoSync w1164 -> Service start = 0x4 Disabled + Type = NoSync w1164_nv -> Service start = 0x4 Disabled + Type = NoSync
https://bugs.winehq.org/show_bug.cgi?id=54129
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |fgouget@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=54129
--- Comment #1 from François Gouget fgouget@codeweavers.com --- I have updated the w10pro64* snapshots to disable Internet time synchronization. For an unknown reason w10pro64v2004 still has:
w10pro64v2004 -> Service start = 0x2 Automatic (Delayed) + Type = NoSync
The NoSync should ensure that there will be no synchronization. But why is the service not disabled???
https://bugs.winehq.org/show_bug.cgi?id=54129
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=54129
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|source, testcase |
https://bugs.winehq.org/show_bug.cgi?id=54129
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from François Gouget fgouget@codeweavers.com --- To disable the Internet time synchronization LibvirtTool runs the following commands:
net.exe stop w32time sc.exe config w32time start= disabled reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters" /v Type /t REG_SZ /d NoSync /f
Running these manually disables the w32time service as expected. But not when LibvirtTool prepares this one 2004 live snapshot! I suspect something is re-enabling the w32time service but I have also not observed it if waiting after running the commands manually.
So this is still a mystery but Type = NoSync should be sufficient to prevent w32time from messing with the time.