Repository navigation
Description
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
- 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.
- 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
github-actions commentedon May 27, 2026
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:
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 networkinginstead, following the instructions in Collect WSL logs for networking issuesOnce 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'.
chemwolf6922 commentedon May 28, 2026
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.
chemwolf6922 commentedon May 28, 2026
I'm able to repro the issue by opening around 330
wsl sleep infinitysessions 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.milen-dzhambazov commentedon May 28, 2026
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...
npo-mmenke commentedon Jul 10, 2026
I'm running into the same issue regularly, anything I can do to help here?
StartupBros commentedon Aug 3, 2026
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=-1Symptom 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 withUtilAcceptVsock: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:
and dmesg shows the hv_sock channel-open path failing its ring-buffer allocation:
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_openfails for every new channel and the Windows side surfaces it asaccept4 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_memorydoes 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
/init, ppid=1, ages 4–16 days, each holding ~6 socket fds + a pty master; 987 ESTABLISHED AF_VSOCK connections total (ss --vsock).Relay; relays serving live sessions name themselvesRelay(<pid>). Handy discriminator./proc/<pid>/statusshowsSigIgn: 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:
/init, comm exactlyRelay(notRelay(<pid>))ppid == 1/run/WSL/<pid>_interopsocket 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 shared2_interoplistener/proc/<sid>gone)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.
Wizard1209 commentedon Aug 4, 2026
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 -ecalls, 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 oktimes out, existing sessions andwsl --list --runningfine. Looks like accumulation, not a concurrency ceiling.wslservice is in a metronomic hvsock retry loop. We keep a persistent circular
netsh trace scenario=netconnectionring 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:All AF_HYPERV (0x22) to the VM GUID, sampled completions all successful:
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).sdrik commentedon Aug 7, 2026
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.
commis not a reliable live/leaked discriminatorThe filter distinguishes leaked relays by
commbeing exactlyRelay, versusRelay(<pid>)for relays serving a live session. I have a relay that is leakedby every other criterion in the filter yet carries the suffixed form:
Compared with a relay that really is serving a live session on the same machine:
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 hasbeen 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:
This classifies both relays above correctly. It also subsumes the existing
ppid == 1/ppid == 2check, so it is one test instead of two, and it doesnot 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>_interoplistener, and the socketfile stays in place. So the socket existing is not evidence of a usable relay.
Anyone recovering interop by re-pointing
$WSL_INTEROPat "some socket thatexists" — 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:
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 110and none of this issue's markers —0 leaked relays at the time, 49
AF_VSOCKconnections, order-7 blocks plentifulin both zones, zero
Waiting for abnormally long acceptindmesg, and 5 hoursof VM uptime.
That turned out to be a dead init interop channel: the in-distribution init's
Interop vsock sat in
CLOSINGindefinitely, so every launch that fell back tothe hardcoded
/run/WSL/1_interopfailed on anEPIPEwhile forwardingLxInitMessageCreateProcessUtilityVm, and the caller surfaced it as the samemisleading
accept4timeout 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_VSOCKcount 49 -> 76,CLOSINGsockets 2 -> 9 — but I checked that failing fallback launches are not the cause:
two deliberate failed attempts left the orphan count, the
AF_VSOCKcount andthe
CLOSINGcount all unchanged. So the two look genuinely independent.click6067-ship-it commentedon Sep 3, 2026
Additional reproducible data from an agent-heavy WSL workflow.
Environment:
Observed failure:
wsl.exeinvocations failed with<3>WSL (...) ERROR: UtilAcceptVsock:273: accept4 failed 110.UtilAcceptVsockevents, 1,031Waiting for abnormally long acceptevents, and 34vmbus_alloc_ring/ order-allocation failures.comm=Relay, argv exactly/init, PPID 1, no children, dead session leader, and no live per-session interop socket).Recovery test:
SessionLeadertrees were excluded.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?
majordave commentedon Oct 14, 2026
WSL issue #40650 — sanitized diagnostic summary
Capture date: 2026-10-14 (local time, UTC-06:00)
Environment
WSL-side observations
A read-only snapshot taken at approximately 13:01 reported:
UtilAcceptVsock:273: accept4 failed 110during Windows interop.page allocation failure: order:7in thevmbus_alloc_ringpath.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=5460in 96 events. Neither the standard nor-lrXML 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
Creación del procesoaudit subcategory wasNo Auditingwhen checked after the capture. This is a later policy check and does not establish the policy state at capture time.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.