Skip to content

hvsocket new-session transport dies after wsl --terminate and after Modern Standby resume (accept4 110); separately, Relay processes stick in accept(12) and log every ~62s until SIGKILL #41286

Closed

Description

@axiom-ncis

Windows Version

Microsoft Windows [Version 10.0.26200.8973]

WSL Version

2.7.11.0 (earlier incidents reproduced on 2.7.10.0)

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.18.33.2-2 (6.18.33.2-microsoft-standard-WSL2)

Distro Version

Ubuntu 24.04.4 LTS (systemd enabled)

Other Software

Docker Desktop 4.84.0.234817 (engine 29.6.2), WSL integration enabled for the Ubuntu distro.

Host is an always-on automation machine (MSI laptop, S0 Modern Standby capable). It runs scheduled tasks that invoke wsl.exe headlessly, plus long-lived MCP-style client processes that hold wsl.exe bridges open.

Repro Steps

Two related failure modes on the same host. (A) is deterministic and was found on 2026-08-07 while running a planned recovery drill; (B) and (C) are the field occurrences that led to it.

A. Deterministic: wsl --terminate induces the failure from a healthy baseline

  1. Start from a verified-healthy state: zero UtilAcceptVsock errors on the current boot, zero orphaned Relay processes, Docker Desktop WSL integration working (/var/run/docker.sock present in the distro), distro serving normally.
  2. wsl.exe --terminate Ubuntu — returns exit 0, "The operation completed successfully."
  3. Re-enter the distro with any command, which relaunches it: wsl.exe -d Ubuntu -- /bin/true.
  4. Within a few minutes, every new session attempt fails:
    Catastrophic failure / Error code: Wsl/Service/E_UNEXPECTED (exit 127).

What is notable is what keeps working: the distro is still Running per wsl.exe -l -v, its own processes keep serving on forwarded ports (our in-distro HTTP service answered 200 throughout), and the service itself answers. Only creation of new sessions is dead.

Docker Desktop's user-distro integration dies with it (no /var/run/docker.sock, no docker-desktop-user-distro proxy process inside the distro), and its retry loop then repeatedly re-attempts the crossing against the already-broken transport.

In our capture the kernel logged 2,421 UtilAcceptVsock errors in ~6 minutes, with ZERO orphaned Relay processes present — i.e. this mode does not require the Relay accumulation described in (C).

  1. Recovery required the full ladder: stop Docker Desktop → wsl --shutdown → start Docker Desktop. A second wsl --terminate is not sufficient, and re-entering the distro just reproduces the wedge.

B. Resume-triggered (observed twice; not reproducible on demand)

Leave the machine to enter Modern Standby / hibernate, then resume.

  • 2026-08-04: entered Modern Standby 06:45:03 local. Immediately before sleep, Windows logged Kernel-Power event 40: \Driver\vpcivsp for ROOT\VPCIVSP\0000 "stopped the power transition". Resumed 17:29:58. Starting 51 seconds after resume (17:30:51) and continuing until reboot at 17:56, all 40 subsequent new-session attempts failed identically (log lines under Actual Behavior).
  • 2026-07-16: Windows logged exit from Modern Standby at 07:53:05; a WslLogs/hvsocket trace captured 48 seconds later already shows the broken state.

C. Relay accumulation under sustained headless wsl.exe churn

Long-running automation that repeatedly spawns wsl.exe accumulates in-VM Relay processes that never exit (details under Actual Behavior). A deliberate churn test on 2026-07-16 (~80 launches in ~22 minutes) preceded a wedge; a single clean probe pair on 2026-08-05 did not reproduce it. We have not isolated which client exit mode strands a Relay — Windows-side client lifecycle instrumentation is now deployed here and we can supply correlated data on request.

Expected Behavior

  1. wsl --terminate <distro> should be a safe, supported way to restart a distro. Re-entering the distro afterwards should create a working session, not leave the host half of hvsocket unable to complete new-session connects while the service and VM remain up.

  2. Resume from Modern Standby / hibernate should not leave new-session creation broken while everything else (the service, the VM, the distro's own processes, established connections and port forwards) keeps working.

  3. A Relay process whose Windows client has disconnected should exit or be reaped. It should not remain forever in accept(12) emitting a kernel error every ~62 seconds, and it should not require SIGKILL from inside the VM to clear.

  4. When the transport does break, the failure should be distinguishable from a distro-down condition. Wsl/Service/E_UNEXPECTED with the distro still reporting Running gives an operator no actionable signal, and the recovery that is actually required (wsl --shutdown plus a Docker Desktop restart) is much heavier than the failure appears to warrant.

Actual Behavior

Signature 1 — new sessions fail after resume (and after wsl --terminate)

Every new-session attempt produced this pair in the kernel log, from a fresh SessionLeader each time (40 consecutive occurrences on 2026-08-04, 17:30:51 → 17:54:31):

WSL (<pid> - SessionLeader) ERROR: UtilAcceptVsock:273: accept4 failed 110
WSL (<pid> - SessionLeader) ERROR: operator():1263: UtilAcceptVsock() failed for session leader 110

(110 = ETIMEDOUT.) The in-VM side forks a session leader that listens and times out; the Windows half never connects. On the client side this surfaces as:

Catastrophic failure
Error code: Wsl/Service/E_UNEXPECTED

Throughout, wsl.exe -l -v kept reporting the distro Running, established connections and port forwards kept working, and services inside the distro kept serving. Only new session creation was dead. A host reboot (2026-08-04) or wsl --shutdown + Docker Desktop restart (2026-08-07) restored it.

An earlier episode (2026-08-03) ended the same way with Wsl/Service/E_UNEXPECTED on session creation.

Signature 2 — Relay stuck in accept(12), forever, until SIGKILL

Individual in-VM Relay processes (comm exactly Relay) enter a permanent stuck-accept state while their SessionLeader parent is still alive, and are only later reparented to PID 1 when that parent exits. Each emits exactly one kernel error every ~62 seconds, indefinitely:

WSL (<pid> - Relay) ERROR: UtilAcceptVsock:246: Waiting for abnormally long accept(12)

Controlled observation (2026-08-05, WSL 2.7.11), from 5-minute monitoring snapshots:

  • 20 consecutive samples at zero errors.
  • One Relay stuck at ~16:42Z; error count then rose linearly 1, 6, 11, 17 … 62, 66 — one per ~62 s — with all 66 errors attributed to that single PID and no other PID contributing.
  • At 16:43:47Z the process was still parented to its live SessionLeader; by 16:49:02Z it had become PPID 1.
  • SIGTERM was ignored. SIGKILL removed it and the error stream stopped instantly and stayed flat across five subsequent samples (~17 minutes).

On 2026-08-06 a population of 10 such Relays (ages 4.6–21.9 h, ~250 attributed errors each) accumulated and was cleared the same way.

SIGTERM was ignored without exception: across both removals, 11 of 11 stuck Relays ignored SIGTERM (bounded 10–15 s waits) and every one exited only on SIGKILL. Removal had no observable effect on the distro, established connections, Docker, or running services.

Earlier episodes (2026-07-14 / 07-16) accumulated 37–42 such Relays and ended in full new-session failure.

Possibly related

Cited as possibly-related symptoms, not asserted duplicates.

Diagnostic Logs

Available on request — please tell us the preferred private channel for the trace:

  • WslLogs / hvsocket ETW trace, 1.37 GB, captured 2026-07-16 at 07:53:53, i.e. 48 seconds after the Modern Standby resume that broke that boot. Too large to attach here.
  • Persistent journald records for every episode listed above, including per-PID attribution of each UtilAcceptVsock error.
  • 5-minute health snapshots spanning the 2026-08-05 and 2026-08-06 events (relay census with PID/PPID/session-ID/age, cumulative and delta error counts) — these are what produced the linear 1-per-62s attribution above.
  • Windows Kernel-Power event sequences for the resume episodes, including the id-40 \Driver\vpcivsp "stopped the power transition" entry.
  • Full terminal transcript of the 2026-08-07 wsl --terminate reproduction, including the 2,421-errors-in-6-minutes capture and the recovery ladder.

Happy to re-run the deterministic reproduction (A) with any specific tracing enabled if that would help — it reproduces on demand here.

Activity

  1. github-actions commented on Aug 7, 2026

    @github-actions
    Contributor

    Logs are required for review from WSL team

    If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
    Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

    How to collect WSL logs

    Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

    Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
    Set-ExecutionPolicy Bypass -Scope Process -Force
    .\collect-wsl-logs.ps1
    

    The script will output the path of the log file once done.

    If this is a networking issue, please use .\collect-wsl-logs.ps1 -LogProfile networking instead, following the instructions in Collect WSL logs for networking issues

    Once completed please upload the output files to this GitHub issue.

    See Collect WSL logs (recommended method).

    If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

  2. axiom-ncis commented on Aug 8, 2026

    @axiom-ncis
    Author

    Additional WSL 2.7.11 occurrence and attended recovery evidence:

    • On the same WSL boot, two bare Relay processes became PPID-1 orphans. Kernel attribution tied 28 UtilAcceptVsock failures to one and 754 to the other (782 total). No other PID was attributed.
    • The observed failure cadence remained approximately one error per orphan per 62 seconds.
    • An attended, fail-closed classifier revalidated both processes immediately before signaling. Both ignored SIGTERM and exited only after SIGKILL.
    • The cumulative error count stayed at 782 during the 150-second post-drain quiet window and across three later five-minute samples. The orphan count remained zero, the WSL boot identity did not change, and application health checks remained successful.
    • This recurrence occurred on WSL 2.7.11, so I have not found evidence that the Relay lifecycle defect is fixed in that release.

    I am intentionally not attaching the raw diagnostic archive to this public issue because it may contain usernames, local paths, process command lines, environment details, network identifiers, or application metadata. I can provide a privacy-reviewed diagnostic bundle through Microsoft's private log channel. Please say whether a narrowly scoped trace or specific providers would be sufficient, so I can minimize disclosure.

  3. chemwolf6922 commented on Aug 10, 2026

    @chemwolf6922
    Contributor

    Hi Axiom (@axiom-ncis) .
    Could you please collect and provide logs for scenario A? Please capture the full repro in the log.
    You could email the log if you don't wish to share here. But that would require help from the team to triage.

  4. sdrik commented on Aug 12, 2026

    @sdrik

    Adding the Windows-side half of this. Same trigger (Modern Standby resume), different symptom: instead of new sessions failing, the pre-existing relay threads inside wslhost.exe start spinning at 100% CPU and never stop. On my machine this reached ~11 cores of a 16-core laptop while the distro was completely idle.

    I captured a full dump and the call stacks, which I think identify the faulty loop precisely — see the cross-reference to #40651 at the end.

    Environment

    WSL 2.7.8.0 (older than this issue's 2.7.11.0 — so this is not a 2.7.11 regression)
    Kernel 6.18.33.1-1
    WSLg 1.0.73.2
    Windows 11 Pro 26200.8875, Modern Standby (S0ix)
    Hardware 16 logical cores
    wslhost.exe C:\Program Files\WSL\wslhost.exe, file version 2.7.8.0, timestamp 6A2390C1 (2026-06-06), ImageSize 0x35B000

    What it looks like

    After 2 days 1 h of uptime with ~30 standby cycles, and with nothing running in the distro:

    PID    Process    CPU (% of one core)
    1944   wslhost    889%       <- VM-level host, child of wslservice
    26484  wsl.exe    239%       <- session relay
    

    Linux side at that exact moment: load average: 0.03, 0.74, 1.33, top process aznfswatchdog at 2.3%. The burn is entirely on the Windows relay side.

    The process is 96% kernel time: 368 029 s kernel vs 16 810 s user cumulative; sampled over 10 s, 723% kernel vs 15% user.

    It is a growing population of stuck threads, not one runaway thread

    23 of the 70 threads in wslhost were spinning, each at 21–69% of a core, ~746% total. This is why the problem grows: the average since boot was only 2.2 cores while the instantaneous value was 8.9.

    The key signature is uniform accumulated CPU across threads of very different ages:

    Thread Created Accumulated CPU
    37160 Aug 11 20:37 2204 s
    38552 Aug 12 07:53 2002 s
    41136 Aug 12 08:37 1971 s

    Threads are created at a steady rate (roughly one every 21 min). If each had been spinning since birth, these numbers would differ by an order of magnitude. Equal accumulation means they all started spinning at the same instant. Dividing accumulated CPU by current rate dates that instant to Aug 12 08:59, and the Kernel-Power event 507 (Modern Standby exit) is logged at 08:59:39.

    Confirmed on a second, independent event: 507 at Aug 11 09:01:26, thread 20924 onset 09:05.

    So each resume recruits the entire thread population alive at that moment into a permanent spin, and successive resumes stack up.

    Call stacks

    From a full dump (procdump -ma), all spinning threads share a bit-for-bit identical stack — same return addresses on every one:

    ntdll!ZwReadFile+0x14
    KERNELBASE!ReadFile+0x12a
    wslhost+0x8c2d1
    wslhost+0x8a60f
    wslhost+0x89022
    wslhost+0x1447bf
    kernel32!BaseThreadInitThunk+0x17
    ntdll!RtlUserThreadStart+0x2c
    

    !runaway 7 returns exactly 23 threads with non-zero time, matching the live measurement. Per-thread kernel/user ratio is 94.6% (thread 13: 22:11:08 kernel vs 1:15:35 user).

    The decisive point: a thread blocked in ZwReadFile waiting for data consumes zero CPU. These consume 25–75% of a core while permanently parked on that call site. ReadFile must therefore be returning immediately and the loop reissuing it without making progress.

    The offsets wslhost+0x8c2d1 (the ReadFile caller), +0x8a60f, +0x89022 and +0x1447bf should resolve directly for anyone with private symbols for this build.

    Cross-reference to #40651

    This matches #40651 exactly: the relay loops in src/windows/common/relay.cpp miss the bytesRead == 0 EOF check on the synchronous-success path of ReadFile, so a graceful FIN returning TRUE with zero bytes is fed straight back into the read loop. That issue was closed as needs-author-feedback without a fix.

    If that analysis is correct, this issue and #40651 are two views of one bug: the Modern Standby resume tears down the hvsocket connections, every relay thread gets its zero-byte read, and the missing EOF check turns all of them into permanent spinners at once. That would also explain why both wsl.exe and wslhost.exe are affected — shared relay code — and why they spin in pairs (BidirectionalRelay, one thread per direction).

    It might be worth reopening #40651 with this data, since the stacks provide the confirmation its author never supplied.

    What I could not prove: that the handle being read is \Device\Afd. !handle 0 3 on a user-mode dump returns type and granted access but no object names (199 File handles, no name strings). Confirming the handle type needs kernel-mode or a richer dump. I have the full dump and can run any command against it on request.

    Detecting it

    This spots the condition on a live system — non-zero output means stuck threads. The uniform Cumul across different Created values is the tell:

    $p = Get-Process wslhost
    $a = @{}; foreach ($t in $p.Threads) { $a[$t.Id] = $t.TotalProcessorTime.TotalSeconds }
    Start-Sleep 10; $p.Refresh()
    foreach ($t in $p.Threads) {
      $r = ($t.TotalProcessorTime.TotalSeconds - $a[$t.Id]) / 10
      if ($r -gt 0.05) {
        [pscustomobject]@{
          TID     = $t.Id
          PctCore = [math]::Round($r * 100, 1)
          Cumul   = [math]::Round($t.TotalProcessorTime.TotalSeconds)
          Created = $t.StartTime
        }
      }
    }

    Workarounds

    wsl --shutdown is the only recovery, and it has to kill the VM: the spinning threads live in the VM-level wslhost (child of wslservice, created with the VM), so closing the terminal or killing the session's wsl.exe pair frees nothing. This matches the "only addressable through VM-level termination" note already in this issue.

    There is no prevention other than shutting WSL down before the machine sleeps.

    Ruled out

    • Any Linux-side workload, per the load average above.
    • A newer WSL build: this is 2.7.8.0, while this issue is reported against 2.7.11.0.
  5. NavehBrenner commented on Aug 23, 2026

    @NavehBrenner

    Independent reproduction, with guest-side kernel evidence that I think narrows
    this down — the VMBus channel layer is deadlocked inside the guest, so no new
    hvsocket channel can ever be created.

    Environment (differs from the original report)

    • WSL 2.6.3.0 (Store + MSI), kernel 6.6.87.2-1
    • Windows 11 10.0.26200.9168, sleep states: S0 Low Power Idle only (no S3)
    • Hit twice, six days apart, both times immediately after a Modern Standby resume

    Worth noting this is a much older WSL than the 2.7.10/2.7.11 in the original
    report, so whatever this is, it is not a 2.7.x regression.

    Guest-side evidence (via wsl --debug-shell)

    init is healthy — it is not the thing that is stuck:

    Name:   mini_init
    State:  S (sleeping)
    wchan:  do_sys_poll
    

    The stuck tasks are two VMBus kworkers, in D state. Identical on both
    occurrences, six days apart:

    kworker/0:2+hv_pri_chan       wchan=__vmbus_open
    kworker/0:0+hv_vmbus_rescind  wchan=msleep
    

    So a channel open is blocked in __vmbus_open while the channel rescind
    worker is also stuck. VMBus channel operations are serialized, so once these two
    wedge, no further channel can be opened for the life of the VM.

    That lines up exactly with the observed behaviour: init still forks a
    SessionLeader for every wsl.exe invocation, but each new session needs a new
    hvsocket channel, so the SessionLeader waits and times out:

    WSL (27081 - SessionLeader) ERROR: UtilAcceptVsock:271: accept4 failed 110
    WSL (27081 - SessionLeader) ERROR: operator():1240: UtilAcceptVsock() failed for session leader 110
    

    ...repeating every ~30s for as long as anything retries. Meanwhile everything
    running on an already-open channel is completely unaffected — existing
    shells, dockerd (containers healthy for 6 days), ICMP to the guest, port
    forwards. wsl -l -v works (service-only, no channel needed);
    wsl --system -e /bin/sh -c echo fails identically to every distro, which is
    what rules out anything distro-specific.

    Trigger correlation

    First occurrence, the guest log times it precisely — VMBus IC renegotiation on
    resume, then the first failure 37 seconds later:

    [6331.100292] hv_utils: TimeSync IC version 4.0
    [6368.839896] WSL (1749 - SessionLeader) ERROR: UtilAcceptVsock:271: accept4 failed 110
    

    Second occurrence was triggered by a lid close/open on battery. In that capture
    the TimeSync churn is ongoing rather than one-shot — systemd-journald: Time jumped backwards, rotating repeats every ~29s, interleaved with the accept4
    failures.

    Also consistent with suspend involvement: in the first capture the guest's
    monotonic clock had only reached ~7600s across 19 hours of wall time, i.e. the
    VM spent most of that period paused.

    Ruled out here (with evidence)

    • autoMemoryReclaim / sparseVhd — suspected first and cleared both times.
      init was healthy in do_sys_poll and drop_caches completed normally
      (mini_init (291): drop_caches: 1) while sessions were already failing.
    • Network stack — session creation is hvsocket/VMBus and never touches it.
      Third-party firewall/AV, Hyper-V firewall, and ephemeral port exhaustion are
      all irrelevant to this path.
    • Anything inside the distro — wsl --system fails identically.

    Recovery

    wsl --shutdown only. A deadlocked VMBus workqueue cannot be cleared in a
    running VM, so there is no way to recover without dropping every open session
    and container.

    Happy to grab anything else useful on the next occurrence — it reproduces every
    few days here. If a specific trace (hvsocket ETW, /proc/*/stack for the two
    kworkers, vmbus debugfs) would help, say which and I will capture it before
    shutting the VM down.

  6. PanagiotisDrakatos commented on Aug 26, 2026

    @PanagiotisDrakatos

    Independent reproduction (different machine/setup from OP). Our failure arises
    spontaneously under sustained workload — closest to scenario C plus signature 1,
    without the wsl --terminate trigger of scenario A — posting in case the extra
    data helps triage.

    Versions: WSL 2.9.3.0 (predates the accept-timeout fix from PR #41252, which
    first shipped in the 2.9.8 pre-release; the 2.9.9 pre-release is also newer
    than all data below), kernel 6.18.35.2-microsoft-standard-WSL2, Ubuntu 24.04,
    agent-heavy workload (Codex/Claude/MCP servers, systemd Docker), ~13 GiB WSL
    memory limit.

    This morning's failed state (before recovery):

    • 194 exact-name Relay processes, all orphaned; oldest ~19h56m
    • 119,106 "Waiting for abnormally long accept" journal records
    • 207 "accept4 failed 110" records; 277 order-7 page allocation failures
    • zero OOM kills, no swap thrashing (PSI ~0)
    • new WSL->Windows launches fail with UtilBindVsockAnyPort / socket failed 1

    Same-day reproduction on a clean boot (rebooted 11:58 local, normal workload):
    first vmbus_alloc_ring/order-7 failure at T+24min; first SessionLeader
    "accept4 failed 110" 30 seconds later; first Relay "Waiting for abnormally
    long accept" ~2.4h after that; 36 orphaned Relay + 13 still-parented
    Relay() processes by T+6.5h. All 36 orphans map 1:1 to logged
    accept-timeout events (no unexplained residue).

    Possibly useful data points from the most recent ~10 days of preserved syslog
    on 2.9.3.0 (older rotations exist back to 2026-08-02):

    • "Waiting for abnormally long accept" appears exclusively on Relay processes
      (232,547/232,547 across the two most recent syslog rotations) and "accept4
      failed 110" exclusively on SessionLeader (1,403/1,403) — the two symptoms
      are cleanly separable process families.
    • Record-level coupling with memory pressure: of 71 parsed wtmp records with
      any accept-log overlap, nominally 16 were symptomatic and 15/16 carried both
      symptom classes. The accept-only 1-minute record is boundary-ambiguous. For
      the >=5-minute sensitivity cut, 35 records are eligible; 15 are symptomatic
      and all 15 are concordant, while 20 contain neither class.
    • One full ~4d21h boot (Aug 16-20) showed zero symptoms with the machine up
      23-24h/day, then the next boot reactivated and escalated — the accumulation
      is boot-scoped.
    • Retained April 2026 journals show the same twin signature: stuck Relay PIDs
      plus SessionLeader accept4-110.

    The official hvsocket log profile has been collected during the failed state.
    I can provide the archive through Microsoft's private log channel after an
    archive-level privacy review and separate approval; I will not post it
    publicly.

    Happy to help further: I can re-run this reproduction on demand, validate the
    2.9.8/2.9.9 pre-releases against the accumulation signature under the same
    workload, and contribute regression checks if useful.

  7. ntucker commented on Sep 1, 2026

    @ntucker

    Below is evidence compiled by my Sol agent around me having similar problems. I'm on a Samsung Book 6 Pro.

    Additional independent reproduction: post-resume WSL2 new-session vsock failure

    This is additional field evidence for microsoft/WSL#41286, collected on a separate Windows 11 machine. The observed failure closely matches the issue's Signature 1: after Modern Standby, the WSL2 VM and existing Linux sessions remain alive, but every new WSL session times out. It does not show the separate stuck-Relay accumulation described in Signature 2.

    Environment

    • Windows 11 25H2, build 26200.9278
    • WSL 2.7.12.0
    • WSL kernel 6.18.33.2-2
    • Default and affected distribution: Ubuntu, WSL version 2
    • WSL networking mode: default NAT
    • Modern Standby is enabled and the incidents follow standby/resume events

    The wsl --status line saying WSL1 is unsupported is only informational. Both wsl --status and wsl --list --verbose confirm that the affected distribution is WSL2.

    User-visible behavior

    After resume:

    • An already-open terminal inside Ubuntu continued to work.

    • Processes already running in the distribution continued to run.

    • New WSL terminals could not be created.

    • A Cursor Remote-WSL window stopped working; reloading the window did not restore it.

    • One Windows-side attempt eventually reported:

      A connection attempt failed because the connected party did not properly respond after a period of time,
      or established connection failed because connected host has failed to respond.
      Error code: Wsl/Service/0x8007274c
      

    This combination is important: the running Linux instance was still usable through an established session, while creation of any new WSL session was broken.

    Live host-side capture on 2026-09-01

    Windows recorded exit from Modern Standby at 09:59:06 (Kernel-Power event 507, reason Lid). A read-only bounded probe ran at 10:00:02 and again at 10:12:41.

    At both times:

    • wsl --version completed normally.
    • wsl --status completed normally.
    • wsl --list --verbose completed and reported Ubuntu Running 2.
    • wsl --list --running --quiet completed and returned Ubuntu.
    • wsl -d Ubuntu -- /bin/true did not start the command and was killed by the probe after a 12-second timeout.
    • WslService, vmcompute, hns, and SharedAccess were all running.
    • vmmemWSL, wslhost, and wslrelay remained present.
    • HCS reported the WSL VM as Running with the same VM ID: B9703128-DCE2-4858-BC07-E4473BF7DFEA.
    • The HNS network WSL (Hyper-V firewall) remained present in state 1.
    • The probe made no service, process, HNS, distribution, or VM changes.

    The same WSL VM had remained up since 2026-08-31 17:27:54. A second Modern Standby interval (10:05:04 to 10:07:58) did not repair the failure.

    Minimal host-side result:

    wsl --list --verbose                 -> completed; Ubuntu Running, version 2
    wsl --list --running --quiet         -> completed; Ubuntu
    wsl -d Ubuntu -- /bin/true           -> timed out after 12 seconds
    HCS WSL VM state                     -> Running
    existing Linux terminal              -> still working
    

    Correlated guest-kernel evidence

    While the existing terminal still worked, dmesg showed a new SessionLeader failing for each new-session attempt:

    [Tue Sep  1 10:02:28 2026] WSL (6845 - SessionLeader) ERROR: UtilAcceptVsock:273: accept4 failed 110
    [Tue Sep  1 10:02:28 2026] WSL (6845 - SessionLeader) ERROR: operator():1263: UtilAcceptVsock() failed for session leader 110
    [Tue Sep  1 10:03:11 2026] WSL (6953 - SessionLeader) ERROR: UtilAcceptVsock:273: accept4 failed 110
    [Tue Sep  1 10:03:11 2026] WSL (6953 - SessionLeader) ERROR: operator():1263: UtilAcceptVsock() failed for session leader 110
    [Tue Sep  1 10:03:41 2026] WSL (7006 - SessionLeader) ERROR: UtilAcceptVsock:273: accept4 failed 110
    [Tue Sep  1 10:03:41 2026] WSL (7006 - SessionLeader) ERROR: operator():1263: UtilAcceptVsock() failed for session leader 110
    [Tue Sep  1 10:13:12 2026] WSL (9210 - SessionLeader) ERROR: UtilAcceptVsock:273: accept4 failed 110
    [Tue Sep  1 10:13:12 2026] WSL (9210 - SessionLeader) ERROR: operator():1263: UtilAcceptVsock() failed for session leader 110
    

    Error 110 is Linux ETIMEDOUT. The final 10:13:12 pair correlates with the second Windows probe, which began at 10:12:41 and timed out attempting to create a new session.

    The process census after these failures was:

    PID  PPID  ELAPSED  COMMAND         ARGS
    318     2     3386  SessionLeader   /init
    

    Only the established session's SessionLeader remained. The failed per-attempt session leaders exited, and there were zero processes with command name Relay. Therefore this reproduction does not require or exhibit a stuck-Relay population.

    Earlier occurrence on 2026-08-31

    An earlier incident had the same user-visible shape: an existing terminal worked, but new terminals and Cursor session creation failed. Guest dmesg contained:

    [Mon Aug 31 16:25:01 2026] WSL (18900 - SessionLeader) ERROR: UtilAcceptVsock:273: accept4 failed 110
    [Mon Aug 31 16:25:01 2026] WSL (18900 - SessionLeader) ERROR: operator():1263: UtilAcceptVsock() failed for session leader 110
    [Mon Aug 31 16:25:05 2026] WSL (18907 - SessionLeader) ERROR: UtilAcceptVsock:273: accept4 failed 110
    [Mon Aug 31 16:25:05 2026] WSL (18907 - SessionLeader) ERROR: operator():1263: UtilAcceptVsock() failed for session leader 110
    

    Later, immediately before that Linux boot ended, journald recorded a timeout in the lower-level init/control connection:

    Aug 31 17:19:32 NATMOBILE unknown: WSL (1 - mini_init) ERROR: UtilConnectVsock:610: connect port 50000 failed 110
    

    The journal ended at that line without evidence of an orderly Linux shutdown. Windows subsequently removed the old WSL VM/network endpoint and created a new WSL VM at approximately 17:27:55. Linux reported:

    previous boot ended:  2026-08-31 17:19:32
    new boot began:       2026-08-31 17:27:57
    new boot_id:          3ae048fa-0e75-4ed2-bcfd-87b9fb80de0a
    

    The apparent recovery was therefore not an in-place transport recovery: the old WSL VM disappeared and a fresh VM booted. Cursor server processes in the replacement VM started afterward, at about 17:31.

    Longer diagnostic history

    A conservative post-resume monitor collected 38 samples from August 26 through August 31:

    Classification Samples
    New WSL session timed out while a distribution was listed as running 30
    Fully healthy 4
    No running WSL distribution 3
    Windows network recovery incomplete 1

    In 27 of the 30 session-timeout samples, independent Windows TCP and DNS checks passed. These are repeated samples and should not be interpreted as 30 independent incidents; several occurred while the same WSL failure remained active across multiple resume events.

    The monitor's action was none in all 38 samples. In particular, it never restarted HNS, WslService, vmcompute, a distribution, or the WSL VM. Healthy samples demonstrated that the same probe could successfully run a new Linux command and verify the guest route, direct network access, and DNS when session creation was functioning.

    Concise findings supported by the captures

    1. The affected workload is WSL2, not WSL1.
    2. The WSL service can answer host-only queries and enumerate the distribution while new Linux process/session creation is broken.
    3. The WSL VM and existing Linux session/processes remain alive during the failure.
    4. Every attempted new session creates a guest SessionLeader that times out in UtilAcceptVsock: accept4 with error 110.
    5. Failed session leaders exit rather than accumulating.
    6. No stuck Relay process was present in the captured incidents.
    7. The failure follows Modern Standby/resume and can persist through another standby/resume cycle.
    8. The observed failure occurs before a new guest command can run, so a Windows-side probe cannot reach guest route, DNS, or Internet tests in the failed state.
    9. The presence of the HNS network alone does not prove guest networking is healthy, but the evidence does not support HNS/NAT as the primary failure: session establishment fails first, and many samples occurred while Windows networking was independently healthy.
    10. Restarting HNS was neither attempted nor required to produce these observations.
    11. One apparent recovery was conclusively a WSL VM replacement, not preservation or repair of the running VM.

    Not established by this evidence

    • The captures identify the failed boundary as new-session host/guest vsock communication, but do not identify the underlying Windows component or code defect responsible for it.
    • They do not prove that every resume causes the failure; healthy post-resume samples also exist.
    • They do not establish an in-place repair that preserves the running WSL VM.
    • wsl --shutdown is expected to recover by replacing the VM, and matches the recovery reported in this issue, but it has not yet been deliberately tested during the current captured incident because preserving running Linux processes was the priority.
    • SSH may bypass WSL's new-session transport while the VM and Linux network remain usable, but that workaround was not part of these captures.

    Evidence available

    • Full read-only Windows probe transcripts from healthy and failed states
    • Per-resume JSON summaries containing Windows network tests, WSL enumeration/session results, service state, HNS state, and actions taken
    • Persistent guest journald and kernel messages
    • Windows Modern Standby event timestamps
    • Previous/current Linux boot IDs and boot boundaries
  8. zioalex commented on Sep 2, 2026

    @zioalex

    I am seeing what appears to be the same FSE / mirrored-networking failure signature, but with an important difference: my active fse.sys is still 10.0.26100.8737, not .8972.

    Trigger

    In my case, the issue happens after Windows sleep/resume.

    Before suspend, WSL networking works normally.

    After resume:

    • The existing WSL instance is still running.
    • Existing Linux sessions remain alive.
    • New wsl.exe operations can hang.
    • WSL networking is lost.
    • The mirrored network interface remains DOWN.
    • There is no default route.

    WSL networking state

    After resume:

    eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN
    

    The routing table contains no default route:

    172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
    

    Linux kernel errors

    The kernel repeatedly reports:

    hv_netvsc 95b544f7-2475-4fbe-ba8e-c1af7279ae2f (unnamed net_device) (uninitialized):
    unable to open channel: -19
    
    hv_netvsc 95b544f7-2475-4fbe-ba8e-c1af7279ae2f (unnamed net_device) (uninitialized):
    unable to add netvsc device (ret -19)
    
    hv_vmbus:
    probe failed for device 95b544f7-2475-4fbe-ba8e-c1af7279ae2f (-19)
    

    Windows Hyper-V VmSwitch errors

    Windows reports Hyper-V VmSwitch Events 32 and 35.

    Event 32:

    Failed to connect NIC
    CF7C9A39-C82E-4DDC-BCB9-F44887657F11--95B544F7-2475-4FBE-BA8E-C1AF7279AE2F
    
    to port
    0D7061C6-E06D-4445-AC74-B0BE49C42DB3
    
    on switch
    30BE601B-A2AB-4EDC-9AD5-9D2600CF7CF0
    
    status = 0xc0010022
    

    Event 35:

    Failed to connect NIC ... on switch ...
    
    Friendly Name: FSE Switch
    
    The task was vetoed by a switch extension,
    or the switch extension stack is corrupted.
    
    Status = 0xc0010022
    

    WSL control-plane behavior

    There is also a control-plane issue after resume.

    Commands such as:

    wsl --status
    wsl --list --quiet
    wsl -l --verbose

    can hang even though existing Linux sessions are still running.

    Running the following from elevated PowerShell restores the WSL control connection:

    Restart-Service WslService -Force

    After that:

    • New WSL connections work again.
    • VS Code can connect to WSL again.
    • The existing WSL instance becomes manageable again.

    However, network connectivity remains broken.

    I also tried:

    Restart-Service hns -Force

    but that did not restore networking.

    hv_netvsc continues failing to open the VMBus network channel with -19.

    Environment

    Kernel version:   6.6.87.2-1
    WSLg version:     1.0.71
    MSRDC version:    1.2.6353
    Direct3D version: 1.611.1-81528511
    DXCore version:   10.0.26100.1-240331-1435.ge-release
    Windows version:  10.0.26100.9106
    

    FSE driver:

    FileVersion:    10.0.26100.8737 (WinBuild.160101.0800)
    ProductVersion: 10.0.26100.8737
    

    Observation

    This appears to be the same general:

    FSE Switch
    + Hyper-V VmSwitch Events 32/35
    + 0xc0010022
    + mirrored networking failure
    

    failure mode, but in my case it occurs:

    • on fse.sys 10.0.26100.8737
    • after Windows sleep/resume
    • without requiring the .8972 FSE driver mentioned in this issue

    This may indicate that .8972 introduced another trigger/regression for an FSE/VmSwitch failure mode that can already occur with .8737, rather than the problem being exclusive to .8972.

  9. microsoft-github-policy-service commented on Sep 9, 2026

    @microsoft-github-policy-service
    Contributor

    This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.

    Thank you!

  10. shigewoo commented on Nov 4, 2026

    @shigewoo

    WSL #41286 — Reproduces after Modern Standby / hibernate resume

    Symptom

    After the machine resumes from sleep/hibernate, any new wsl invocation fails with:

    Wsl/Service/WSAETIMEDOUT
    

    and WSL itself reports:

    <3>WSL (97905 - ) ERROR: UtilAcceptVsock:281: accept4 failed 110
    

    wsl --shutdown reliably recovers it, but it comes back after the next sleep/resume cycle. wsl --update reports "already latest".

    Environment

    • Windows: Windows 11, build 10.0.26200.9711
    • WSL: 3.0.3.0
    • Kernel: 6.18.54.1-1
    • Distro: Ubuntu (default distro; wsl -l -v unavailable while the failure is active)
    • Networking mode: NAT (default; no networkingMode set in .wslconfig)

    What I ruled out

    Logs

    I collected logs with:

    .\collect-wsl-logs.ps1 -LogProfile hvsocket

    Archive attached: WslLogs-2026-11-04_13-46-39.tar.gz

    Findings from tracerpt logs.etl -summary

    • HvSocketTraceProvider {b2ed3bdb-cd74-5b2c-f660-85079ca074b3}: 3168 events captured during the failure window — the vsock trace provider is active and recording, not silently dead.
    • Microsoft-Windows-Hyper-V-VfpExt {9f2660ea-cfe7-428f-9850-aeca612619b0}:
      • Event ID 110: 45 events
      • Event ID 965: 701 events (very high frequency)
      • Event ID 604: 43 events
      • Event ID 968: 18 events
    • Microsoft-Windows-Host-Network-Service: 33 events
    • Microsoft-Windows-Hyper-V-StorageVSP: 2 events (Event ID 1010)

    The VfpExt event burst (especially 965 × 701) suggests the Hyper-V virtual filtering platform is also in an abnormal state after resume, not just the vsock channel. This may point to the data-plane side of the virtual switch being affected alongside the control-plane vsock failure.

    Timeline

    The failure occurs immediately after resume — the first wsl command after wake consistently times out. Existing shells that were already open before sleep may still work, but any new session fails.

    Let me know if you need a WPR trace with additional providers enabled, or a -Dump collection while the failure is active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions