Skip to content
This repository was archived by the owner on Nov 21, 2022. It is now read-only.
This repository was archived by the owner on Nov 21, 2022. It is now read-only.

Pull Clock Sync bug fix from Insider WSL Kernel #13

Closed
@rg9400

Description

@rg9400

There's a bug in the current production kernel on WSL that seems to exist in this custom kernel as well where the clock in WSL will lose sync with the host clock over time.

This was fixed in an insider build of the kernel. You can read the note here: https://devblogs.microsoft.com/commandline/servicing-the-windows-subsystem-for-linux-wsl-2-linux-kernel/#bug-fix-clock-sync

GHI: microsoft/WSL#5324

The relevant kernel is at https://github.com/microsoft/WSL2-Linux-Kernel/releases/tag/linux-msft-wsl-5.10.16.3

Not sure if this is easy to pull into yours, but if it is, I would greatly appreciate it as I run a 2FA service in WSL that obviously requires precise time syncing.

EDIT:
Relevant Kernel bugs
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/hv/hv_util.c?id=b46b4a8a57c377b72a98c7930a9f6969d2d4784e
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/hv/hv_util.c?id=90b125f4cd2697f949f5877df723a0b710693dd0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions