WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL 2 Plan 9/DrvFS access leaks Windows kernel pool in wcifs.sys on Windows 11 build 26200

Open janplancraft opened this issue 3 months ago • 19 comments

Windows Version

Windows 11 Enterprise 10.0.26200.8973

WSL Version

2.7.11.0

Are you using WSL 1 or WSL 2?

  • [x] WSL 2
  • [ ] WSL 1

Kernel Version

6.18.33.2

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

  1. Reboot Windows and record PoolMon/pool counters.
  2. Start WSL 2.
  3. Perform high-volume filesystem enumeration across the Windows/WSL boundary, such as recursively examining many files under /mnt/d.
  4. Observe WCsc/WCri/FMfn and total paged pool grow.
  5. Stop the operation and run wsl --shutdown.
  6. Observe that the leaked pool remains allocated.

A diagnostic operation writing Windows output to \\wsl.localhost\Ubuntu\... also reproduced rapid WCsc allocation growth during an instrumented WPR trace.

Expected Behavior

Filesystem contexts and Filter Manager name-cache entries are freed after the requests and WSL instance finish.

Actual Behavior

The allocations remain outstanding indefinitely, accumulating until Windows is rebooted.

Diagnostic Logs

I have a very large wcifs-active-leak-2026-08-09.etl file I can share privately for diagnostics if necessary.

Summary

High-volume filesystem access across the WSL/Windows boundary causes unbounded Windows paged and nonpaged kernel-pool growth.

The affected paths include Linux access to Windows drives through /mnt/d and Windows access to Linux through \\wsl.localhost.

The leaked memory is not released by closing the originating application or by wsl --shutdown. A complete Windows reboot is required.

Impact

Paged pool reached approximately 28.3 GB and nonpaged pool approximately 18.4 GB on a 48 GB system, resulting in nearly complete memory exhaustion.

After reboot, pool usage returned to normal. Repeating cross-filesystem file activity caused it to grow again by several GB.

PoolMon attribution

Dominant tags included:

  • FMfn: Filter Manager name cache
  • WCsc
  • WCri
  • WCfc
  • WCss
  • WCse
  • File
  • IoNm
  • NtfC

The WC* tags were verified as strings in wcifs.sys.

During one active trace, WCsc outstanding allocations increased from approximately 448,000 to 930,000.

WPA/WPR stack attribution

A WPR Pool.Verbose trace shows outstanding WCsc allocations with stacks containing:

dllhost.exe -> ntoskrnl.exe -> FLTMGR.SYS -> wcifs.sys

The relevant dllhost.exe instance was:

C:\Windows\System32\DllHost.exe /Processid:{DFB65C4C-B34F-435D-AFE9-A86218684AA8}

More than 90% of outstanding allocations for several dominant tags, including FMfn, WCsc, WCri, and FMfc, had vp9fs.dll in their stack.

Additional information

  • No Windows containers or Rancher Desktop were involved.
  • Closing the originating applications does not release the memory.
  • wsl --shutdown does not release the memory.
  • WSL 2.7.11 was the latest version offered by winget at the time.
  • An approximately 349 MB WPR Pool.Verbose ETL trace is available privately.

janplancraft avatar Aug 09 '26 12:08 janplancraft

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'.

github-actions[bot] avatar Aug 09 '26 12:08 github-actions[bot]

/emailed-logs

janplancraft avatar Aug 10 '26 08:08 janplancraft

Diagnostic information
Found '/emailed-logs', adding tag 'emailed-logs'

github-actions[bot] avatar Aug 10 '26 08:08 github-actions[bot]

Hi @janplancraft . Thanks for reporting this. There was already a fix for this in Windows pre-release. I'm still trying to track down its current status and release plan.

chemwolf6922 avatar Aug 11 '26 03:08 chemwolf6922

@chemwolf6922 Thanks for taking a look, please link me to the insider build / patch notes that fix this specific issue. I wasn't able to find anything after a quick search.

janplancraft avatar Aug 17 '26 16:08 janplancraft

Hi @janplancraft . It seems the fix has not reached insiders yet. I'll update here if I hear back from the author & the plan can be shared.

chemwolf6922 avatar Aug 19 '26 07:08 chemwolf6922

I also believe I experienced this issue. Doing parallel finds from WSL onto the Windows filesystem, it eventually crashed the driver or something similar. Remounting the Windows filesystem worked without a reboot.

wkrettek avatar Aug 24 '26 15:08 wkrettek

We have a similar problem here and this other thread explains it really well (not ours): https://github.com/microsoft/Windows-Containers/issues/646

We also have docker, WSL, ..

BatLine avatar Sep 03 '26 09:09 BatLine

I've seen similar issue with small Sandbox reproducer https://github.com/microsoft/Windows-Sandbox/issues/126 seems to be the same root cause as other issues here, I have not seen those before. Posting for context.

kasper93 avatar Sep 03 '26 17:09 kasper93

Adding another data point from a high-memory Windows development workstation because the observed kernel-pool growth is very similar to this report.

Host / observed state

  • Host: Windows development workstation (Rinnegan)
  • Physical RAM: ~96 GB (93.6 GB usable)
  • Uptime when observed: ~4.4 days
  • RAM in use: ~77 GB / 93.6 GB (~84%) despite little active foreground work
  • Paged pool: 30.11 GB
  • Nonpaged pool: 11.97 GB
  • Combined kernel pool: ~42.1 GB
  • Standby cache: ~14.9 GB
  • vmmemWSL: ~6.3 GB private / ~5.7 GB working set
  • Commit headroom was still ~58.6 GB, so the dominant anomaly was kernel-pool retention rather than ordinary process memory pressure.

Workload

This machine is a fairly heavy WSL 2 / Docker development host. Docker Desktop is running multiple long-lived stacks, including Windmill, PostgreSQL, flow-worker containers, and another application/Postgres stack. The machine also sees substantial Git traversal, file I/O, container lifecycle activity, and agent/tooling workloads over large source trees.

The important similarity to this issue is that after several days of this workload, kernel-pool usage had grown to essentially the same scale reported here: 30.1 GB paged + 12.0 GB nonpaged. Normal user-mode processes did not account for the missing memory.

At this point I have not yet confirmed the dominant PoolMon tags (e.g. WCsc, WCri, FMfn) or proven that the retained allocations are specifically from wcifs.sys, so I do not want to over-attribute the cause. I also have not yet isolated which exact Windows↔WSL filesystem paths were being traversed. I am posting this as a correlated field observation rather than a confirmed duplicate reproduction.

Next time the growth is observed (or after reproducing it from a fresh boot), I plan to capture PoolMon tag deltas and, if needed, a WPR pool trace before recovery. If the WC*/FMfn tags dominate, I can add those numbers/stacks here as stronger confirmation.

One potentially useful aspect of this data point: the host has ~2x the RAM of the original report, so the leak can accumulate for several days without immediate OOM and becomes very obvious as sustained 10s-of-GB kernel-pool retention.

spencer-shadley avatar Sep 07 '26 02:09 spencer-shadley

Follow-up with live pool-tag data from the same host in my previous comment. No reboot or remediation has occurred since the high-pool state was observed.

Exact host build / filter state

  • Windows 11 Pro 25H2
  • Version 10.0.26200
  • Build/UBR: 26200.9278
  • fltmc filters shows Microsoft filters including WdFilter, FileInfo, UCPD, applockerfltr, bfs, bindflt, CldFlt, Wof, and wcifs.
  • wcifs is registered (altitude 189900), but at the time of this snapshot it had 0 attached instances.

I queried NtQuerySystemInformation(SystemPoolTagInformation) directly rather than inferring ownership from aggregate pool counters.

Largest paged-pool tags

Tag Current bytes Outstanding allocations (allocs - frees)
Toke 7,695.3 MB 3,708,367
FMfn 4,705.5 MB 13,564,307
Ntfc 2,036.6 MB 13,346,730
IoNm 1,838.9 MB 13,356,474
SeAt 1,542.5 MB 15,601,954
SeTd 509.3 MB 3,708,367
D2d 406.7 MB 13,325,627
NtfF 397.8 MB 250,672

Total paged pool remains about 30.1 GB.

Largest nonpaged-pool tags

Tag Current bytes Outstanding allocations (allocs - frees)
File 5,197.8 MB 13,626,897
SQSF 2,036.6 MB 13,346,592
SeTl 452.7 MB 3,708,367
EtwB 229.5 MB 2,430
ReTa 218.6 MB 3,560,448
FMsl 141.8 MB 320,523

Total nonpaged pool remains about 12.0 GB.

Important similarity and difference vs this issue

There is a very strong file-stack correlation in the live snapshot:

  • File: 13,626,897 outstanding / 5.08 GB
  • FMfn: 13,564,307 / 4.59 GB
  • IoNm: 13,356,474 / 1.80 GB
  • Ntfc: 13,346,730 / 1.99 GB
  • SQSF: 13,346,592 / 1.99 GB

So roughly 13.3–13.6 million simultaneously outstanding allocations appear across several closely related file/Filter Manager/NTFS tags. This accounts for ~15.5 GB of current kernel pool by itself.

However, there is also an important difference from the original report: I explicitly checked all WC* tags. The only one present was WCMs, with only 62 outstanding allocations and effectively 0 MB. I therefore cannot claim that this snapshot proves wcifs.sys is the owner. The dominant retained state is presently charged to FMfn / File / IoNm / NTFS-related tags rather than WCsc/WCri/WCfc.

That may be useful because this host has heavy WSL/Docker/Git/file-enumeration activity yet has reached the same tens-of-GB failure mode without the WC* tags being dominant at the time sampled. The other issues already linked in this thread (#646 and microsoft/Windows-Sandbox#126) may be relevant to the broader Filter Manager/file-object retention mechanism.

Separate token/security-pool anomaly on the same host

There is also ~10 GB in security/token-related tags:

  • Toke: 7.51 GB
  • SeAt: 1.51 GB
  • SeTd: 0.50 GB
  • SeTl: 0.44 GB

Toke, SeTd, and SeTl have the exact same 3,708,367 outstanding-allocation count. There is a separate public 25H2/build-26200 report of unbounded Toke growth through the token-duplication/process-creation path, so this may be a second independent Windows 25H2 kernel-pool issue present on this development workload rather than part of the WSL filesystem bug. I have not captured allocation stacks for the token tags on this host yet, so I am not attributing those allocations beyond the observed pool tags.

One terminology caveat: the allocs - frees figures above are outstanding allocations, not by themselves proof that every object is leaked. The evidence that matters next is whether these counts continue rising with the triggering workload and fail to fall after it stops / WSL shuts down, plus WPR Pool stacks showing who holds the final references.

I can capture a time-series from a fresh boot and WPR Pool trace if that would be useful to the WSL/Windows filesystem team.

spencer-shadley avatar Sep 07 '26 02:09 spencer-shadley

Follow-up after reboot/update with a clean post-boot baseline from the same host.

Reboot/update result

The host was fully updated and rebooted. Relevant environment after reboot:

  • Windows 11 Pro 25H2, build 26200.9278
  • WSL upgraded from 2.7.8.0 -> 2.7.13.0
  • Linux kernel 6.18.33.2-2
  • Ubuntu and docker-desktop were both Stopped when the baseline below was captured
  • vmmemWSL = 0 MB
  • wcifs remained loaded but had 0 attached instances

Kernel-pool reset after reboot

The pathological state reset almost completely:

Tag Pre-reboot Post-reboot baseline
Toke 7,695.3 MB / 3,708,367 outstanding 10.1 MB / 5,004 outstanding
FMfn 4,705.5 MB / 13,564,307 outstanding 346.3 MB / ~583k outstanding
File 5,197.8 MB / 13,626,897 outstanding 178.3 MB / ~503k outstanding
Ntfc 2,036.6 MB <5 MB
SQSF 2,036.6 MB <5 MB
IoNm 1,838.9 MB / 13,356,474 outstanding 5.8 MB / ~26k outstanding
SeAt 1,542.5 MB <5 MB
SeTd 509.3 MB 3.6 MB
SeTl 452.7 MB 3.2 MB
D2d 406.7 MB 4.2 MB

Aggregate kernel pool fell from:

  • Paged pool: 30.11 GB -> 3.21 GB
  • Nonpaged pool: 11.97 GB -> 1.80 GB
  • Combined kernel pool: 42.08 GB -> 5.01 GB

The reboot recovered roughly 37 GB of kernel pool and about 56 GB of physical RAM compared with the final pre-reboot snapshot.

Why this baseline may be useful

  1. The prior Toke/security-family state was clearly accumulated over uptime rather than steady-state usage: Toke dropped from ~7.5 GB to ~10 MB.
  2. The File/IoNm/NTFS-related state likewise essentially disappeared after reboot.
  3. FMfn is notable because it is already ~346 MB with ~583k outstanding allocations immediately after boot while WSL and Docker are stopped. That means FMfn by itself is not sufficient evidence of the WSL/wcifs issue; the important diagnostic is its growth rate and whether it returns toward baseline after the triggering workload stops.
  4. wcifs still had 0 instances and no meaningful WC* pool usage in this clean control state.

I am now sampling these tags over time from this clean baseline (Toke, SeAt, SeTd, SeTl, FMfn, File, IoNm, Ntfc, SQSF, and all WC*) while progressively re-enabling normal Windows agent/Git workloads and then WSL/Docker. The goal is to capture which tag family begins growing first, correlate it with process/filesystem activity, and test whether the allocations persist after the workload stops / wsl --shutdown.

This should help distinguish three possibilities on this machine: a Windows process/token-retention issue, a broader Filter Manager/file-object retention issue, or the specific wcifs/vp9fs cross-filesystem leak described in this issue.

spencer-shadley avatar Sep 07 '26 02:09 spencer-shadley

A possibly related data point, in case it helps scope the fix: the same FMfn growth on build 26200 with WSL not involved.

  • Windows 11 Pro 25H2, build 26200.9445, WSL 2.7.3.0
  • wcifs is loaded with zero instances in the filter map, none of the WCsc / WCri / WCfc tags appear in any pool capture, and both distros are stopped.
  • FMfn, FMsc and FMsl still lead paged pool growth: 34.3 GB of pool in 67 hours after a clean boot, and 33 GB after a 24-day session, reclaimable only by rebooting.
  • Here the per-open cost follows Microsoft Defender (WdFilter): opens on Defender-excluded trees are 15-60x cheaper in pool than on unexcluded ones.

So the FMfn part may also have a path that does not go through the WSL boundary. openai/codex#31212 describes the same shape on another machine.

FJRG2007 avatar Sep 16 '26 14:09 FJRG2007

Adding a data point from a machine that shows the wcifs → NtFC pinning pattern described here, on the latest servicing build.

Host

Field Value
OS Windows 11 Pro 25H2, build 26200.9457 (KB5129195, 2026-09-17)
RAM 32 GB
ntfs.sys 10.0.26100.8875
wcifs.sys 10.0.26100.9278, Start=2 (Auto), altitude 189900
WSL 2.7.10.0, kernel 6.18.33.2-2
Distros docker-desktop (v2), Ubuntu-24.04 (v2)

Pool tag data (NtQuerySystemInformation class 22)

Tag    NP_MB      share
NtFC   21353.2    97.1%   <-- 65.5% of installed RAM
HalD      64.4     0.29%
EtwB      57.9     0.26%
smCB      44.4     0.20%
NVRM      43.6     0.20%
smNp      40.6     0.18%
--- total tagged nonpaged = 21982 MB

Aggregate non-paged pool = 23,322 MB. Sum of all process working sets = 7,301 MB. Available physical = 513 MB. Paged pool is unremarkable (1,119 MB) — the anomaly here is exclusively non-paged and exclusively NtFC.

Two observations that may be useful

1. The retention is provably not a cache. Two independent captures ~1 hour apart returned NtFC = 21,353.2 MB byte-identical, while aggregate non-paged pool and available memory moved by tens of MB in the same windows. A cache would be reclaimed and would not hold a constant byte count across an hour.

2. There are two independent VHDX consumers on this host, both driving NTFS I/O against .vhdx files on NTFS volumes:

VHDX Size Location
docker_data.vhdx 34.9 GB E:\UserData\Docker\wsl-data\disk\
Ubuntu-24.04-ext4.vhdx 4.9 GB E:\UserData\WSL\Ubuntu-24.04\
rootfs.vhdx (Claude Cowork) 7.7 GB E:\UserData\Claude\vm_bundles\claudevm.bundle\

Note .wslconfig networkingMode=mirrored is set, and C:\Users\<user>\AppData\Local\Docker\wsl is a junction to E:\UserData\Docker\wsl-data — worth resolving when comparing VHDX placement across reports, since the VHDX path does not reflect the volume that actually backs the I/O.

The second consumer is CoworkVMService (Claude Desktop), which has its own open report of the same signature: anthropics/claude-code#94198 ("CoworkVMService non-paged pool leak (NtFC/ntfs.sys) — Restart clears it, Shutdown does not"). Same pool tag, different VM subsystem. Anyone attributing NtFC growth on a Claude Desktop machine should isolate which of the two subsystems is driving a given episode.

Fast Startup interaction

HiberbootEnabled = 1. A shutdown + power-on does not clear the retained pool — the hibernated kernel session is restored and the 21 GB returns. Only a true restart clears it. Worth calling out in the workaround guidance, since "reboot to fix it" reads as "shutdown" to many users.

Cross-reference: microsoft/WSL#41644 (filed against the WSL repo, follow-up to #40804 which was closed NOT_PLANNED).

luxueqi123 avatar Sep 18 '26 08:09 luxueqi123

Additional data point on 26200.9457, with WSL/Docker idle: on this machine the FMfn/File growth is per process creation, not per file operation.

Repro (no admin): https://gist.github.com/Vivek-Yarra/f9acc6f20922132b0d42a65388d2a71f starts cmd.exe /d /c exit N times and reads SystemPoolTagInformation before and after a settle period.

Build 26200.9457  N=1000  settle=45s  (outstanding allocations after settle)
control (sleep only)   SQSF=0      File=+91    FMfn=-163   IoNm=+56    Proc=+5  Thre=+12
start cmd.exe x1000    SQSF=+1961  File=+3993  FMfn=+1891  IoNm=+1954  Proc=-7  Thre=-120
  • About 1–2 SQSF, 2–4 File, 1–2 FMfn and 1–2 IoNm are leaked per process. Proc/Thre don't grow and no process gains handles, so these aren't zombie processes.
  • It leaks the same with whoami.exe, powershell.exe or node.exe as the child, with a cmd.exe copy outside System32, and from a parent launched via WMI (WmiPrvSE, outside any terminal).
  • File operations don't leak (stat, open, read, realpath/GetFinalPathNameByHandle, readdir, rename, create/delete, ReadDirectoryChangesW). A spawn of a missing image doesn't leak either.
  • SQSF is not in any binary under System32, drivers or DriverStore, and not in any published tag list.

Ruled out: Defender RTP off (leak continues), Smart App Control off, AppLocker and FileTrace stopped. Live fltmc detach of wtd, UCPD and bfs from C: made no change. On this host wcifs, CldFlt and UnionFS have no instance on C:, so wcifs isn't the pinning filter here. bindflt, luafv, FileInfo and storqosflt refuse detach (0x801f0010), so they remain suspects along with WdFilter and the kernel process-creation path.

Impact: 9.8 GB non-paged + 9.2 GB paged pool after 11.7 days on a dev box that starts many short-lived processes. Only a reboot reclaims it; Shutdown with Fast Startup does not.

Filed in Feedback Hub: https://aka.ms/AA13q4cj

Vivek-Yarra avatar Oct 06 '26 12:10 Vivek-Yarra

Adding another measured data point with the WC* tags present, from a 128 GB Windows development workstation. The measurements look consistent with the pool-retention pattern in this issue, but I have not captured allocation stacks or a controlled reproduction.

Environment

  • Windows 11 Pro 25H2, build 26200.9445.
  • AMD Ryzen 9 5950X; 128 GB installed RAM.
  • WSL 2.6.3.0, kernel 6.6.87.2-1.
  • wcifs.sys file version 10.0.26100.9278.
  • WSL configuration: memory=48GB, processors=16, swap=8GB, networkingMode=mirrored, autoMemoryReclaim=gradual.
  • Workload includes builds in WSL and Docker. Other Windows container/VM services are also running; these have not been isolated.

Observed state

The first saved sample was taken on 2026-10-09 at 10:44:48 UTC, after approximately 7.25 days of Windows uptime. All memory sizes below are GiB (2^30 bytes).

Host counter Value
Paged pool 27.27 GiB
Nonpaged pool 15.89 GiB
Combined pool 43.17 GiB
Paged pool resident in RAM 26.86 GiB
Available physical RAM 33.39 GiB
System commit / limit 114.56 / 190.42 GiB
System process handle count 9,161,690
vmmemWSL working set 22.55 GiB

The issue is affecting usability: the browser and several other applications intermittently stall, particularly around build activity. I have also observed that after a reboot, reopening the same usual workload keeps total RAM usage at approximately 40 GB or less. That fresh-boot baseline is from prior experience, not a controlled measurement captured during this investigation. I have not established that the pool allocations cause the stalls.

Pool tags

Collected directly using 64-bit NtQuerySystemInformation(SystemPoolTagInformation) (class 22), alongside Windows performance counters. The table lists the dominant pool type for each tag; the JSON retains both types and the raw allocation/free counters.

Tag Pool GiB Outstanding allocations
FMfn Paged 12.38 22,585,394
File Nonpaged 3.44 9,231,717
WCri Paged 3.28 7,289,592
WCsc Nonpaged 3.27 9,150,147
IoNm Paged 2.72 9,183,251
FMfc Nonpaged 1.64 9,150,583
WCfc Nonpaged 1.41 7,289,592
FMwi Nonpaged 1.09 9,150,114
WCse Paged 0.55 9,150,099
WCss Paged 0.55 9,150,099

The especially striking raw counters are:

  • WCsc: 9,150,147 allocations, 0 frees.
  • WCfc: 7,289,592 allocations, 0 frees.
  • WCri: 7,368,309 allocations, 78,717 frees; 7,289,592 outstanding, matching WCfc.
  • FMwi: 9,150,156 allocations, 42 frees.

A second sample at 11:25:30 UTC, approximately 41 minutes later in the same boot session, returned identical byte sizes and allocation/free counts for WCsc, WCfc, WCri, WCse, and WCss. Total pool remained around 43 GiB. This demonstrates persistence over that interval, not by itself that the allocations are leaked or which workload created them.

Scope and remaining gaps

  • Closing a separate Windows Terminal instance with unusually high private commit reduced total system commit substantially, but the approximately 43 GiB kernel pool remained. This was not a WSL shutdown test.
  • No reboot, wsl --shutdown, or VM/service isolation was performed between the two saved samples.
  • No allocation-stack trace, fltmc instance capture, or standard WSL diagnostic bundle has been collected yet.
  • I have not isolated a triggering Windows/WSL filesystem path or established that this is the same root cause as the original report.

Is there a Windows build/KB containing the fix mentioned earlier in this thread? For this WC* signature, which trace/profile and workload isolation would be most useful next?

The accompanying sanitized JSON contains both samples, raw counters, selected pool tags and the relevant environment/configuration. It excludes hostname, username, user paths and the full process inventory.

wsl-41296-public-evidence.json

romanlex avatar Oct 09 '26 11:10 romanlex

Additional Windows 11 26H2 data point — matching wcifs pool retention

I would like to cross-reference an independent report from Windows 11 Pro 26H2, build 26300.9711, using wcifs.sys version 10.0.26100.9711.

Full diagnostic report: [microsoft/Windows-Containers#646 — comment](https://github.com/microsoft/Windows-Containers/issues/646#issuecomment-6359788075)

Key observations from October 22–23, 2026:

  • During Codex development activity, with a separate development application completely closed, nonpaged pool increased from 1.8 GB to 4.7 GB.
  • After Codex was closed, the pool remained at 4.7 GB for at least 60 minutes, without observable reclamation.
  • System (PID 4): 2,171,861 handles.
  • PoolMon showed 2,164,755 outstanding WCsc allocations and 1,551,949 outstanding WCfc allocations, both with zero frees in the captured counters.
  • FMwi, FMfc, WCri, and FMfn also showed substantial retained allocations or memory usage.
  • The Ubuntu WSL2 distribution was stopped when inspected.
  • After a full Windows restart, normal gaming activity showed approximately 1.1–1.4 GB nonpaged pool, fluctuating back toward 1.1 GB instead of accumulating continuously.

The allocation signature closely resembles the wcifs.sys issue discussed here, although no allocation-stack trace has been captured on this host. Therefore, the exact driver attribution remains unconfirmed.

Could the WSL/Windows team clarify whether the inbound fix covers this retention pattern on Windows 11 26H2 (build 26300.9711), and whether a specific release or KB is planned?

Thank you for investigating.


AI disclosure: This comment was drafted with AI assistance using measurements collected by the reporting user.

Shyiox avatar Oct 23 '26 08:10 Shyiox

Windows Version

Windows 11 Enterprise 10.0.26200.8973

WSL Version

2.7.11.0

Are you using WSL 1 or WSL 2?

  • [x] WSL 2[ ] WSL 1

Kernel Version

6.18.33.2

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

  1. Reboot Windows and record PoolMon/pool counters.
  2. Start WSL 2.
  3. Perform high-volume filesystem enumeration across the Windows/WSL boundary, such as recursively examining many files under /mnt/d.
  4. Observe WCsc/WCri/FMfn and total paged pool grow.
  5. Stop the operation and run wsl --shutdown.
  6. Observe that the leaked pool remains allocated.

A diagnostic operation writing Windows output to \\wsl.localhost\Ubuntu\... also reproduced rapid WCsc allocation growth during an instrumented WPR trace.

Expected Behavior

Filesystem contexts and Filter Manager name-cache entries are freed after the requests and WSL instance finish.

Actual Behavior

The allocations remain outstanding indefinitely, accumulating until Windows is rebooted.

Diagnostic Logs

I have a very large wcifs-active-leak-2026-08-09.etl file I can share privately for diagnostics if necessary.

Summary

High-volume filesystem access across the WSL/Windows boundary causes unbounded Windows paged and nonpaged kernel-pool growth.

The affected paths include Linux access to Windows drives through /mnt/d and Windows access to Linux through \\wsl.localhost.

The leaked memory is not released by closing the originating application or by wsl --shutdown. A complete Windows reboot is required.

Impact

Paged pool reached approximately 28.3 GB and nonpaged pool approximately 18.4 GB on a 48 GB system, resulting in nearly complete memory exhaustion.

After reboot, pool usage returned to normal. Repeating cross-filesystem file activity caused it to grow again by several GB.

PoolMon attribution

Dominant tags included:

  • FMfn: Filter Manager name cache
  • WCsc
  • WCri
  • WCfc
  • WCss
  • WCse
  • File
  • IoNm
  • NtfC

The WC* tags were verified as strings in wcifs.sys.

During one active trace, WCsc outstanding allocations increased from approximately 448,000 to 930,000.

WPA/WPR stack attribution

A WPR Pool.Verbose trace shows outstanding WCsc allocations with stacks containing:

dllhost.exe -> ntoskrnl.exe -> FLTMGR.SYS -> wcifs.sys

The relevant dllhost.exe instance was:

C:\Windows\System32\DllHost.exe /Processid:{DFB65C4C-B34F-435D-AFE9-A86218684AA8}

More than 90% of outstanding allocations for several dominant tags, including FMfn, WCsc, WCri, and FMfc, had vp9fs.dll in their stack.

Additional information

  • No Windows containers or Rancher Desktop were involved.
  • Closing the originating applications does not release the memory.
  • wsl --shutdown does not release the memory.
  • WSL 2.7.11 was the latest version offered by winget at the time.
  • An approximately 349 MB WPR Pool.Verbose ETL trace is available privately.

Hello,

I'm investigating a potentially related Windows 11 kernel pool memory leak that was originally observed on Windows 11 25H2 and continues after upgrading to 26H2.

PoolMon consistently identifies FMfn (Filter Manager name cache) as the dominant paged-pool allocation tag. During heavy filesystem activity, particularly OneDrive synchronization, both paged and nonpaged kernel pool consumption increase substantially.

Stopping OneDrive significantly slows the memory growth, but the accumulated kernel pool memory does not appear to be fully reclaimed until a system restart.

I've reproduced this behavior multiple times and collected supporting PoolMon measurements, memory utilization data, and Windows Performance Recorder traces.

I understand that this GitHub issue primarily concerns WSL-related filesystem activity, and I have not established whether my issue shares the same underlying cause.

I noticed this issue was marked fixinbound, and I was hoping someone from the Microsoft engineering team could clarify:

  1. Is the pending fix specific to WSL/wcifs, or could it also address FMfn allocation retention occurring during other filesystem operations, such as OneDrive synchronization?

  2. Has the fix been incorporated into a particular Windows Insider build, cumulative update, or future release?

I'm also investigating this issue through Microsoft Q&A and have retained additional diagnostic evidence, including a kernel memory dump, for further analysis.

For privacy and security reasons, I am not attaching raw memory dumps, ETL traces, or system-identifying diagnostic information to this public discussion.

Thank you for your time and for investigating this issue.

Sc00bySnaX83 avatar Oct 30 '26 21:10 Sc00bySnaX83

Still present on Windows 11 26H2 build 26300.9818 (wcifs.sys 10.0.26100.9818), which is newer than the builds reported so far. So whatever fix is inbound hasn't reached this 26300 build.

Same wcifs signature as in this issue and microsoft/Windows-Containers#646, with WSL 2 running on the machine. About 6 days after the last real restart:

  • WCsc 2,011,668 outstanding (WCss/WCse identical count), WCfc/WCri 1,111,531
  • FMfc/FMwi/FOCX ~2.01M, IoNm ~2.03M, File ~2.74M, FMfn ~5.12M (2.9 GB paged)
  • System (PID 4) holds 2,030,472 handles
  • ~13 GB total kernel pool on a 64 GB box

It wasn't growing during a 60 s sample (WCsc delta 0), so it built up in bursts. Other wcifs consumers were also running (CmService/vmcompute/vmmemCmZygote, WSAIFabricSvc, Claude Desktop's CoworkVMService), so I can't say WSL/DrvFS alone was the trigger here.

For anyone landing here: if Fast Startup is enabled (HiberbootEnabled=1), a normal Shut down does not reclaim the pool. Only Restart does.

Could you confirm which Windows build or KB the fixinbound fix ships in, and whether it covers the 26300 (26H2) branch as well as 26200?

djravine avatar Nov 04 '26 01:11 djravine