Skip to content

accept4 failed 110 on new WSL sessions when vsock connection count is high — no tunable limit exists #40650

Open

Description

@milen-dzhambazov

Windows Version

Microsoft Windows [Version 10.0.26200.8457]

WSL Version

WSL version: 2.7.3.0 Kernel version: 6.6.114.1-1 WSLg version: 1.0.73 MSRDC version: 1.2.6676 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.26200.8457

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.114.1-microsoft-standard-WSL2

Distro Version

Debian GNU/Linux 13 (trixie)

Other Software

Client:
Version: 29.4.3
API version: 1.54
Go version: go1.26.2
Git commit: 055a478
Built: Wed May 6 17:06:42 2026
OS/Arch: linux/amd64
Context: default

Server: Docker Desktop 4.73.1 (226574)
Engine:
Version: 29.4.3
API version: 1.54 (minimum version 1.40)
Go version: go1.26.2
Git commit: 56be731
Built: Wed May 6 17:07:37 2026
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v2.2.3
GitCommit: 77c84241c7cbdd9b4eca2591793e3d4f4317c590
runc:
Version: 1.3.5
GitCommit: v1.3.5-0-g488fc13e
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Client:
Version: 29.4.3
Context: default
Debug Mode: false
Plugins:
agent: Docker AI Agent Runner (Docker Inc.)
Version: v1.54.0
Path: /usr/local/lib/docker/cli-plugins/docker-agent
ai: Docker AI Agent - Ask Gordon (Docker Inc.)
Version: v1.20.2
Path: /usr/local/lib/docker/cli-plugins/docker-ai
buildx: Docker Buildx (Docker Inc.)
Version: v0.33.0-desktop.1
Path: /usr/local/lib/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v5.1.3
Path: /usr/local/lib/docker/cli-plugins/docker-compose
debug: Get a shell into any image or container (Docker Inc.)
Version: 0.0.47
Path: /usr/local/lib/docker/cli-plugins/docker-debug
desktop: Docker Desktop commands (Docker Inc.)
Version: v0.3.0
Path: /usr/local/lib/docker/cli-plugins/docker-desktop
dhi: CLI for managing Docker Hardened Images (Docker Inc.)
Version: v0.0.3
Path: /usr/local/lib/docker/cli-plugins/docker-dhi
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.31
Path: /usr/local/lib/docker/cli-plugins/docker-extension
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.4.0
Path: /usr/local/lib/docker/cli-plugins/docker-init
mcp: Docker MCP Plugin (Docker Inc.)
Version: v0.42.0
Path: /usr/local/lib/docker/cli-plugins/docker-mcp
model: Docker Model Runner (Docker Inc.)
Version: v1.1.37
Path: /usr/local/lib/docker/cli-plugins/docker-model
offload: Docker Offload (Docker Inc.)
Version: v0.5.85
Path: /usr/local/lib/docker/cli-plugins/docker-offload
pass: Docker Pass Secrets Manager Plugin (beta) (Docker Inc.)
Version: v0.0.25
Path: /usr/local/lib/docker/cli-plugins/docker-pass
sandbox: (Docker Inc.)
Version: v0.12.0
Path: /usr/local/lib/docker/cli-plugins/docker-sandbox
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: /usr/local/lib/docker/cli-plugins/docker-sbom
scout: Docker Scout (Docker Inc.)
Version: v1.20.4
Path: /usr/local/lib/docker/cli-plugins/docker-scout

Server:
Containers: 15
Running: 15
Paused: 0
Stopped: 0
Images: 15
Server Version: 29.4.3
Storage Driver: overlayfs
driver-type: io.containerd.snapshotter.v1
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
CDI spec directories:
/etc/cdi
/var/run/cdi
Discovered Devices:
cdi: docker.com/gpu=webgpu
Swarm: inactive
Runtimes: io.containerd.runc.v2 nvidia runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 77c84241c7cbdd9b4eca2591793e3d4f4317c590
runc version: v1.3.5-0-g488fc13e
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.6.114.1-microsoft-standard-WSL2
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 31.34GiB
Name: docker-desktop
ID: 4000ea4f-9a2a-4dd3-96cb-fce34986b95b
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
No Proxy: hubproxy.docker.internal
Labels:
com.docker.desktop.address=unix:///var/run/docker-cli.sock
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5555
::1/128
127.0.0.0/8
Live Restore Enabled: false
Firewall Backend: iptables

Repro Steps

%USERPROFILE%.wslconfig

[wsl2]
memory=28GB
swap=60GB
networkingMode=mirrored
# cat /etc/wsl.conf
[boot]
systemd=true

After a fresh WSL restart, with a normal developer workflow open (docker compose up ... foreground process with 18 containers, 14 ConEmu terminal tabs, 4 of which are interactive docker compose exec sessions into containers and a JetBrains ijent connection), the vsock connection count at baseline is already ~167. Any further docker compose exec call fails with:

WSL (PID - ) ERROR: UtilAcceptVsock:273: accept4 failed 110

Error 110 = ETIMEDOUT. No new WSL sessions can be established. The failure is slow and indicates a timeout.

No orphaned processes are present. All connections belong to live, legitimate sessions.

Connection accounting

The vsock connection count and per-process breakdown are read with:

Total connection count (subtract 1 for header line)

ss --vsock | wc -l

Per-PID breakdown with process name and parent

ss -p --vsock | grep -oP 'pid=\K\d+' | sort | uniq -c | sort -rn | while read cnt pid; do
cmd=$(cat /proc/$pid/comm 2>/dev/null || echo "[gone]")
ppid=$(awk '{print $4}' /proc/$pid/stat 2>/dev/null)
printf "%4d conns pid=%-8s ppid=%-8s %s\n" "$cnt" "$pid" "$ppid" "$cmd"
done

Baseline output (fresh restart, before any new work):

7 conns pid=756 ppid=679 Relay(757)
7 conns pid=682 ppid=679 Relay(684)
7 conns pid=2113 ppid=2111 Relay(2115)
7 conns pid=2080 ppid=2079 Relay(2082)
7 conns pid=2006 ppid=2005 Relay(2008)
7 conns pid=1931 ppid=1930 Relay(1933)
7 conns pid=1858 ppid=1857 Relay(1859)
7 conns pid=1570 ppid=1569 Relay(1571)
7 conns pid=1475 ppid=1474 Relay(1478)
7 conns pid=1254 ppid=1245 Relay(1268)
7 conns pid=1149 ppid=1148 Relay(1150)
7 conns pid=1088 ppid=1087 Relay(1089)
7 conns pid=1067 ppid=1066 Relay(1068)
7 conns pid=1049 ppid=1044 Relay(1063)
4 conns pid=2086 ppid=2082 docker [docker compose exec -it php8.4-fpm bash]
4 conns pid=2012 ppid=2008 docker [docker compose exec -it php8.4-fpm bash]
4 conns pid=1938 ppid=1933 docker [docker compose exec -it php8.4-fpm bash]
4 conns pid=1860 ppid=1859 docker [docker compose exec -it php8.4-fpm bash]
4 conns pid=1063 ppid=1049 docker [docker compose up ...]
2 conns pid=2115 ppid=2113 ijent
2 conns pid=679 ppid=2 SessionLeader
... (13 × SessionLeader, each 2 conns)
2 conns pid=9 ppid=2 init
2 conns pid=2 ppid=1 init-systemd

Connection math per session:

  • Each WSL session = 1 Relay (7 conns) + 1 SessionLeader (2 conns) = 9 connections minimum
  • Each live docker CLI child adds 4 more connections
  • 14 sessions × 9 = 126, plus 5 docker processes × 4 = 20, plus misc = ~167 total

This is normal usage — 14 terminals, 4 of which are inside Docker containers. No runaway processes, no leaks.


No tunable limit exists

Checked:

  • /sys/module/vsock/parameters/ — no parameters exposed
  • /sys/module/hv_sock/ — no parameters
  • /sys/module/hv_vmbus/parameters/max_version — unrelated
  • net.core.somaxconn (4096), net.core.netdev_max_backlog (1000) — TCP, not vsock
  • .wslconfig — no documented vsock/hvsocket connection limit option
  • Windows Registry under HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss and HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization — no accept queue or connection limit keys

The WSL init binary (/init) contains the UtilAcceptVsock symbol and the exact error string, confirming the limit is enforced inside WSL's own relay infrastructure — not in a Linux kernel parameter that can be tuned from userspace.


Request

  1. Expose a tunable for the vsock accept queue depth (either a .wslconfig key or a kernel module parameter) so users with many open terminals are not artificially capped.
  2. Alternatively, reduce the per-session connection overhead below 7 connections per Relay — each session consuming 9 vsock connections makes the effective session limit far too low for typical developer workflows.

Expected Behavior

I don't understand the whole shebang surrounding vsocks and win<->wsl communication, but I'd expect to be able to run docker compose stacks with 100 containers and 200 terminals as any VM could, let alone native Linux..

Actual Behavior

Can barely run 18 consoles and 4 interactive docker exec consoles and it hits some weird limit preventing the opening of more consoles.

Diagnostic Logs

No response

Activity

  1. github-actions commented on May 27, 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. chemwolf6922 commented on May 28, 2026

    @chemwolf6922
    Contributor

    Hi milen-dzhambazov .
    The accept4 failed log is misleading. The error actually came from a prior poll call on the listen fd (with a 30s timeout). And there is no arbitrary limit in wsl on the vsock connections.
    The issue looks more like a Windows side problem that caused the 30s timeout the poll call is waiting for. However, we do need the log to further analyze this.
    Could you please follow the steps the bot provided to collect and share the log? Thanks.

  3. chemwolf6922 commented on May 28, 2026

    @chemwolf6922
    Contributor

    I'm able to repro the issue by opening around 330 wsl sleep infinity sessions on my machine. It originated from a Windows side connect call to a hvsocket with the error WSAENOBUFS. This seems to be a hypervisor level resource constraint.

  4. milen-dzhambazov commented on May 28, 2026

    @milen-dzhambazov
    Author

    Feng Wang (@chemwolf6922) thanks for looking into it. I'm surprised that this issue has so weak occurrence of reporting on the issue tracker. The few times I found something related to vsock, the users were just "meh, just restart WSL and it'll be fine", which in my case would involve restarting the docker desktop WSL integration and in the process - killing all of my dev stack containers. And I don't really have that huge of a stack... I mean... pretty small dev stack with a few consoles open at all times and hitting that issue all the time.

    As mentioned in the report, I have far fewer than 330 open sessions...

  5. npo-mmenke commented on Jul 10, 2026

    @npo-mmenke

    I'm running into the same issue regularly, anything I can do to help here?

  6. StartupBros commented on Aug 3, 2026

    @StartupBros

    Hit this in production today and did a deep forensic pass before recovering. Sharing the mechanism we observed plus a validated recovery path that does not require wsl --shutdown (we had ~20 days of running work we couldn't lose). Hope it's useful for root-causing.

    Environment: WSL 2.7.3.0 · kernel 6.6.114.1-1 · WSLg 1.0.73 · Windows 10.0.26200.7462 · 20 days VM uptime · heavy interop churn (many short-lived wsl.exe/interop invocations daily) · vmIdleTimeout=-1

    Symptom identical to OP: every new session or interop call fails with UtilAcceptVsock:273: accept4 failed 110 (110 = ETIMEDOUT); already-established sessions keep working. dmesg flooded with UtilAcceptVsock:246: Waiting for abnormally long accept(12) from 615 distinct Relay PIDs.

    Mechanism observed: guest-side order-7 memory fragmentation, not (only) a connection-count cap

    At failure time the guest had 2.2 GB MemFree, but zero free order≥7 blocks in both zones:

    Node 0, zone    DMA32   8536   6533   4032   4406   1938    672     34      0      0      0      0
    Node 0, zone   Normal  20925  28392  20393  13911   9247   2491     77      0      0      0      0
    

    and dmesg shows the hv_sock channel-open path failing its ring-buffer allocation:

    kworker/0:0: page allocation failure: order:7, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
    Workqueue: hv_pri_chan vmbus_add_channel_work
     __alloc_pages+0x30c/0x340
     vmbus_alloc_ring+0x79/0xd0
     vmbus_open+0x29/0x80
     hvs_probe+0x27f/0x4b0
     vmbus_probe+0x3f/0xa0
    

    Every new vsock channel needs an order-7 (512 KB) physically-contiguous ring buffer. Leaked relays pin theirs; once the zones have no order-7 blocks left, vmbus_open fails for every new channel and the Windows side surfaces it as accept4 failed 110. This explains why existing sessions are untouched (their rings are already allocated) and why the failure correlates with connection count without being a literal counter.

    echo 1 > /proc/sys/vm/compact_memory does not recover: the pinned rings are unmovable kernel allocations. Compaction completed in ~70 ms with order-7 still at 0 in both zones.

    The leaked processes

    • 615 orphaned relays: cmdline /init, ppid=1, ages 4–16 days, each holding ~6 socket fds + a pty master; 987 ESTABLISHED AF_VSOCK connections total (ss --vsock).
    • Leaked relays have comm exactly Relay; relays serving live sessions name themselves Relay(<pid>). Handy discriminator.
    • Relays ignore SIGTERM. /proc/<pid>/status shows SigIgn: fffffffc7ff8fefe (SIGTERM in the ignore mask; only SIGCHLD is caught). We SIGTERMed 500 of them: zero exited. SIGKILL required. This seems like a bug in its own right — a relay orphaned to init with a dead session leader can neither exit on its own nor be asked to.

    Recovery without wsl --shutdown (validated, zero collateral)

    SIGKILL any relay matching all of:

    1. cmdline exactly /init, comm exactly Relay (not Relay(<pid>))
    2. ppid == 1
    3. zero children
    4. no /run/WSL/<pid>_interop socket for its own pid — must be a literal filename check; an fd-based check is useless since every relay holds an inherited fd to the shared 2_interop listener
    5. session leader dead (/proc/<sid> gone)
    6. age above a floor (we used 10 min)

    Results: after killing just the first 25, order-7 blocks reappeared (0/0 → 16/20) and interop recovered immediately. Reaping all 569 matching relays returned the guest to baseline (vsock ESTAB 947 → 92; order-7 DMA32=257 / Normal=411) with no impact on running sessions, a native-Linux Docker daemon with 32 containers, or the live Relay(<pid>) relays. We now run this filter as a 5-minute cron GC as a standing workaround, which caps worst-case accumulation at a handful of relays.

    Two things that would fix this class upstream, from what we can see: relay lifecycle (an orphaned relay whose session leader is gone should exit and release its channel), and/or not leaving SIGTERM ignored in the relay's signal mask. Happy to provide more data — we kept full snapshots (fd tables, signal masks, buddyinfo time series, per-pid session/pgid state) from the incident.

  7. Wizard1209 commented on Aug 4, 2026

    @Wizard1209

    Hit the same failure in production. Sharing the host-side view that hasn't been posted here yet.

    Setup: WSL 2.6.3.0, kernel 6.6.87.2-1, Win11 26200.7840, NAT, systemd Ubuntu 24.04, Docker Desktop. Agent-heavy workload: 5–15 concurrent sessions, lots of short wsl.exe -e calls, VM uptime over a week.

    This happens at low session counts too. No 330-session storm needed — relays leaked slowly over days at 5–15 live sessions. Distinct stuck relays (comm exactly Relay, no child-pid suffix) per day: Jul 29: 2, Jul 30: 37, Jul 31: 62, Aug 01: 44 — 131 total by Aug 04 (first four days measured; per-day figures overlap when a pid spans midnight). 276,905 "Waiting for abnormally long accept" lines between Jul 29 22:22 and Aug 04 04:41, steady ~63k/day. End state exactly as in this issue: wsl.exe -e echo ok times out, existing sessions and wsl --list --running fine. Looks like accumulation, not a concurrency ceiling.

    wslservice is in a metronomic hvsock retry loop. We keep a persistent circular netsh trace scenario=netconnection ring frozen by a scheduled task, so we have the minutes before a failure. 138 s of the degraded state (Aug 03 08:10:51–08:13:09): wslservice.exe did 2,076 binds + 1,038 ConnectEx — exactly 2 binds per ConnectEx, ~15 binds/s + ~7.5 ConnectEx/s, in a rigid ~30 s cycle with zero decay:

    per-10s window   binds / ConnectEx
    08:11:30         192 / 96
    08:11:40         216 / 108
    08:11:50         156 / 78
    08:12:00         192 / 96    (repeats like this the whole window)
    

    All AF_HYPERV (0x22) to the VM GUID, sampled completions all successful:

    bind:      Address 0x22000000000000000000000000000000  Status STATUS_SUCCESS
    bind:      Address 0x22000000898BDB90350D794F8CE949EA  Status STATUS_SUCCESS
    ConnectEx: Address 0x22000000D4A0BF84BCDA414BAEB46330  Status STATUS_SUCCESS
    

    That rate is orders of magnitude above session churn (our workload makes a few sessions per minute at peak), and judging by the constant guest log volume it ran for days. Can't tell whether the WSAENOBUFS you saw fires above this layer or only at higher pressure, but the cadence itself looks diagnostic.

    Terminal stage not described here yet: after ~6 days the VM got cleanly shut down under live workload — orderly systemd shutdown cascade at 04:41 Aug 04 with agent processes still running, zero Windows System log events for hours around it. Our read: wslservice's idle tracking lost the surviving sessions. That part is inference — the logs only prove a graceful, unprompted teardown. Either way the endgame is worse than "new sessions fail": the VM dies with work on it.

    Deployed the GC from this thread. One fix: on a systemd distro orphaned relays reparent to pid 2 (the WSL /init), not pid 1 — the ppid check needs to accept both. Can share fuller AFD excerpts on request (the raw trace has a packet capture, so can't attach it wholesale).

  8. sdrik commented on Aug 7, 2026

    @sdrik

    The relay-reaping filter in this thread works, but one of its criteria is
    unreliable and I hit the counter-example while recovering a machine. Sharing the
    correction plus two adjacent findings, since anyone copying the filter is likely
    to trip on the same thing.

    comm is not a reliable live/leaked discriminator

    The filter distinguishes leaked relays by comm being exactly Relay, versus
    Relay(<pid>) for relays serving a live session. I have a relay that is leaked
    by every other criterion in the filter yet carries the suffixed form:

    pid=2420692  comm=Relay(2421322)  ppid=1  parent=systemd  children=0  session leader gone
                 age 12h  and its /run/WSL/2420692_interop listener still present
    

    Compared with a relay that really is serving a live session on the same machine:

    pid=848057   comm=Relay(848062)   ppid=848056  parent=SessionLeader  children=1
    

    For the GC this fails in the safe direction — the relay is skipped, so nothing
    is killed that shouldn't be. But it means the filter silently under-reaps, and
    it is outright unsafe for the inverse use (picking a live relay), see below.

    The parent check is the criterion that holds up

    A relay serving a live session is a child of its SessionLeader. An orphan has
    been reparented to init — pid 1 on a systemd distribution, pid 2 otherwise, as
    already noted upthread. So test the parent rather than the relay's own name:

    ppid=$(awk '{print $4}' "/proc/$pid/stat")
    [ "$(cat "/proc/$ppid/comm")" = SessionLeader ]   # true => serving a live session

    This classifies both relays above correctly. It also subsumes the existing
    ppid == 1 / ppid == 2 check, so it is one test instead of two, and it does
    not need the systemd/non-systemd special case.

    A leaked relay keeps its interop listener

    Worth calling out separately, because it bites in the other direction. An
    orphaned relay still holds its /run/WSL/<pid>_interop listener, and the socket
    file stays in place. So the socket existing is not evidence of a usable relay.

    Anyone recovering interop by re-pointing $WSL_INTEROP at "some socket that
    exists" — an obvious move once you know sessions leave dangling values behind —
    will sooner or later pick an orphan's socket and reproduce the very error they
    are working around:

    WSL_INTEROP=/run/WSL/2420692_interop  cmd.exe /c ver   ->  UtilAcceptVsock:273: accept4 failed 110
    WSL_INTEROP=/run/WSL/848057_interop   cmd.exe /c ver   ->  works
    

    Validating the candidate with the parent check above fixes it. Picking the
    newest socket does not: on the machine above the orphan's socket was the newest
    one by 7 hours.

    Same error string, different cause

    For the record, so the two are not conflated: I first came to this thread with
    UtilAcceptVsock:273: accept4 failed 110 and none of this issue's markers —
    0 leaked relays at the time, 49 AF_VSOCK connections, order-7 blocks plentiful
    in both zones, zero Waiting for abnormally long accept in dmesg, and 5 hours
    of VM uptime.

    That turned out to be a dead init interop channel: the in-distribution init's
    Interop vsock sat in CLOSING indefinitely, so every launch that fell back to
    the hardcoded /run/WSL/1_interop failed on an EPIPE while forwarding
    LxInitMessageCreateProcessUtilityVm, and the caller surfaced it as the same
    misleading accept4 timeout that Feng Wang (@chemwolf6922) described above. Filed separately as #41283.

    Interestingly the leak described in this issue then showed up on the same
    machine a day later — 8 orphaned relays, AF_VSOCK count 49 -> 76, CLOSING
    sockets 2 -> 9 — but I checked that failing fallback launches are not the cause:
    two deliberate failed attempts left the orphan count, the AF_VSOCK count and
    the CLOSING count all unchanged. So the two look genuinely independent.

  9. click6067-ship-it commented on Sep 3, 2026

    @click6067-ship-it

    Additional reproducible data from an agent-heavy WSL workflow.

    Environment:

    • Windows build: 10.0.26200.9168
    • WSL: 2.7.12.0
    • Kernel: 6.18.33.2-2
    • WSL uptime when the failure became persistent: about 3.8 days

    Observed failure:

    • New wsl.exe invocations failed with <3>WSL (...) ERROR: UtilAcceptVsock:273: accept4 failed 110.
    • Existing WSL sessions remained alive.
    • Kernel log totals: 1,065 UtilAcceptVsock events, 1,031 Waiting for abnormally long accept events, and 34 vmbus_alloc_ring / order-allocation failures.
    • 346 established AF_VSOCK connections.
    • Order-7 free blocks were 0 in both DMA32 and Normal.
    • I found 59 strict orphan Relay processes (comm=Relay, argv exactly /init, PPID 1, no children, dead session leader, and no live per-session interop socket).

    Recovery test:

    • I killed only 25 old Relay processes (age >=10 minutes) that met every condition above; live SessionLeader trees were excluded.
    • Order-7 blocks recovered, established AF_VSOCK connections fell from 346 to 302 immediately, and a previously timing-out Windows interop probe completed in 0.05 seconds. Interop remains healthy after further use.

    This strongly matches the hvsocket resource exhaustion described here. I also see #41252 merged and mentioned in the 2.9.8 prerelease notes, while the 2.7.12 stable notes do not mention that fix. Is 2.9.9 prerelease currently the intended build for validating the Relay timeout fix, or is a stable release containing it planned?

  10. majordave commented on Oct 14, 2026

    @majordave

    WSL issue #40650 — sanitized diagnostic summary

    Capture date: 2026-10-14 (local time, UTC-06:00)

    Environment

    • Windows build: 10.0.26200.9711
    • WSL package: 2.7.8.0
    • WSL kernel: 6.18.33.1-microsoft-standard-WSL2
    • WPR profile: WSL-HvSocket

    WSL-side observations

    A read-only snapshot taken at approximately 13:01 reported:

    • UtilAcceptVsock:273: accept4 failed 110 during Windows interop.
    • Kernel page allocation failure: order:7 in the vmbus_alloc_ring path.
    • No free order-7-or-larger blocks in the reported buddy allocator zones, despite approximately 2.47 GiB reported available.
    • 46 Relay processes; 40 had PPID 1 and no children. The vsock inspection showed 175 socket rows.

    These observations are consistent with the order-7/vmbus allocation failure already described in this issue, but do not by themselves identify which Windows application initiated the sessions.

    HvSocket ETW capture

    The 33-second WSL-HvSocket trace completed with 2,417,546 events processed and 0 events lost. Provider GUID {b2ed3bdb-cd74-5b2c-f660-85079ca074b3} accounted for 1,292,425 events.

    The decoded XML contains Owning ProcessID=5460 in 96 events. Neither the standard nor -lr XML export exposed an executable/image-name mapping for that PID. The PID no longer existed when queried later, so the capture does not attribute it to an application.

    Process-creation telemetry and limits

    • Windows Security event 4688 had no matching records in the queried interval.
    • The Creación del proceso audit subcategory was No Auditing when checked after the capture. This is a later policy check and does not establish the policy state at capture time.
    • The Microsoft-Windows-Sysmon/Operational log was not present.

    Therefore, these artifacts do not identify the process that initiated the HvSocket sessions. Process-creation auditing would need to be enabled before a future reproduction to capture that mapping.

    Sanitization

    This summary contains no user-specific filesystem paths, email addresses, IP addresses, or raw ETL/XML payloads. The original ETL/XML is omitted; it is large and the source bundle contains user/network identifiers.

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