Windows Codex Desktop appears to trigger sustained kernel pool growth via file/pipe/filter-driver activity
Summary
Codex Desktop on Windows appears to be a repeatable trigger for sustained Windows kernel pool growth during long local sessions.
The retained memory is not primarily ordinary Codex process private memory. Killing the entire Codex process tree released ordinary committed memory, but did not release the accumulated Nonpaged/Paged Pool. The pool growth is concentrated in Windows kernel pool tags associated with file objects, I/O file extensions, token/security objects, and named-pipe activity.
Current evidence suggests a compatibility issue between Codex Desktop's high-volume file/pipe/subprocess/tool activity and the Windows file-filter stack, especially paths involving npfs, fltmgr, and Microsoft Defender's WdFilter. Codex may not be the kernel driver leaking memory directly, but it appears to be the workload that reliably triggers the growth.
User impact
- Normal memory usage after reboot: about 40%.
- After a long Codex session: memory rises toward 60-70%.
- Observed kernel pool during the issue:
- Nonpaged Pool: about 7.6 GB.
- Paged Pool: about 5.1 GB.
Filetag: about 4.3 GB Nonpaged.IoFEtag: about 1.55 GB Nonpaged.Toketag: about 2.5 GB Paged.SeAttag: about 522 MB Paged.SeTltag: about 174 MB Nonpaged.
- Closing Codex does not release the accumulated kernel pool.
- Reboot is the only confirmed way to reclaim the already accumulated pool.
Environment
- OS: Windows, transcript reports
Microsoft Windows NT 10.0.26200.0. - Codex Desktop package path observed in process command lines:
C:\Program Files\WindowsApps\OpenAI.Codex_26.623.13972.0_x64__2p2nqsd0c76g0\app\Codex.exeC:\Program Files\WindowsApps\OpenAI.Codex_26.623.13972.0_x64__2p2nqsd0c76g0\app\resources\codex.exe
- Codex runtime/tooling paths observed:
...\AppData\Local\OpenAI\Codex\runtimes\cua_node\1b23c930bdf84ed6\bin\node_repl.exe...\.codex\plugins\cache\openai-bundled\chrome\latest\extension-host\windows\x64\extension-host.exe
- Microsoft Defender status during the test:
AMServiceEnabled=TrueAntivirusEnabled=TrueRealTimeProtectionEnabled=TrueBehaviorMonitorEnabled=TrueIoavProtectionEnabled=TrueOnAccessProtectionEnabled=True
What was ruled out
Not simply accumulating cmd.exe processes
The initial suspicion was that Codex might be accumulating cmd.exe processes. Live process inspection did not support that as the primary issue. The problematic memory is in kernel pool tags, not ordinary process memory.
Killing Codex releases ordinary memory but not kernel pool
A detached exit test fully killed the old Codex process tree using taskkill /PID <CodexRootPID> /T /F.
Transcript excerpt:
Codex process count: 12
Codex root process count: 1
Closing Codex root processes with taskkill...
taskkill /PID 30120 /T /F
...
No Codex processes remained after taskkill.
Before/after memory snapshot from that Codex-exit test:
| Metric | Before | After | Delta |
|---|---|---|---|
| Available GB | 11.78 | 13.49 | +1.71 |
| Committed GB | 36.58 | 33.18 | -3.40 |
| Nonpaged Pool GB | 7.63 | 7.62 | -0.01 |
| Paged Pool GB | 5.10 | 5.09 | -0.01 |
Interpretation: Codex process memory was reclaimed, but the accumulated kernel pool was not.
WPR/ETW pool-trace evidence
A WPR Pool.Verbose-style trace was collected while the pool was already high.
Raw ETL size: 39,340,474,368 bytes.
Parsed summary:
EventsSeen=290640421
PoolEventsSeen=127999028
Groups=240099
Tags=957
Elapsed=00:00:56.4593886
During the WPR observation window, tracked tags continued growing:
| Tag | Before | After | Delta |
|---|---|---|---|
File Nonpaged MB |
4214.29 | 4220.83 | +6.54 |
IoFE Nonpaged MB |
1507.35 | 1509.58 | +2.23 |
Toke Paged MB |
2507.27 | 2513.61 | +6.34 |
SeAt Paged MB |
519.78 | 521.03 | +1.25 |
SeTl Nonpaged MB |
172.93 | 173.37 | +0.44 |
Codex-attributed pool activity in the trace
Top Codex/codex process groups from parsed pool events:
| Tag | PID | Process | Type | Net MB | Net count | Notes |
|---|---|---|---|---|---|---|
NpFr |
31984 | Codex | 0x10000208 |
185.627 | 6467 | Large named-pipe/file-related growth |
Obtb |
30120 | Codex | 0x10000001 |
104.273 | 26694 | Object table related |
NpFR |
31984 | Codex | 0x10000200 |
25.262 | 6467 | Named-pipe/file-related growth |
NpFr |
31040 | codex | 0x10000208 |
23.678 | 44 | Codex app-server/runtime |
WtdJ |
30120 | Codex | 0x10000001 |
13.805 | 2966 | Thread/process related workload |
Thre |
30120 | Codex | 0x00000200 |
10.168 | 2975 | Thread objects |
File |
30120 | Codex | 0x00000200 |
5.648 | 14807 | File object growth |
Toke |
30120 | Codex | 0x00000001 |
3.942 | 2227 | Token/security object growth |
IoFE |
30120 | Codex | 0x00000200 |
2.007 | 29232 | I/O file extension growth |
These values are only from the sampled trace window; the accumulated system-wide pool was much larger.
Stack evidence
A TraceEvent-based parser converted the ETL to ETLX and confirmed call stacks:
HasCallStacks=True
EventsSeen=16392350
MatchedPoolEvents=133442
Groups=1308
Elapsed=00:01:07.9282620
Important stack group summaries:
| Tag | PID | Process | Net MB | Net count | Modules in stack |
|---|---|---|---|---|---|
NpFr |
31984 | Codex | 43.315 | 1514 | ntoskrnl > npfs > fltmgr |
NpFr |
30120 | Codex | 8.859 | 12 | ntoskrnl > npfs > fltmgr |
NpFr |
31040 | codex | 6.643 | 7 | ntoskrnl > npfs > fltmgr |
NpFR |
31984 | Codex | 5.914 | 1514 | ntoskrnl > npfs > fltmgr |
File |
30120 | Codex | 1.845 | 4837 | ntoskrnl > ntdll > kernelbase |
IoFE |
30120 | Codex | 0.517 | 4837 | ntoskrnl > ntdll > kernelbase > kernel32 |
Toke |
30120 | Codex | 0.312 | 176 | ntoskrnl > WdFilter |
Other modules seen in relevant stack groups include npfs, fltmgr, WdFilter/wdfilter, bindflt, ahcache, chrome, and codex.
Interpretation: the strongest stacks point to named pipes (npfs) and file filter manager (fltmgr), with Defender WdFilter also appearing in token/security-object paths.
Defender exclusion experiment
An elevated test added Defender exclusions for Codex-related application/runtime/workspace paths and observed pool tags for 10 minutes.
Note: the first version of this local test also accidentally added overbroad C:\Windows\system32 and C:\Windows\system32\cmd.exe exclusions. Those should be ignored for product guidance; a cleanup script was prepared locally. The meaningful part of the experiment was excluding Codex-specific paths and processes.
10-minute memory delta after exclusions:
| Metric | Delta |
|---|---|
| Available GB | +0.09 |
| Committed GB | -0.02 |
| Nonpaged Pool GB | +0.01 |
| Paged Pool GB | +0.01 |
Tracked tag deltas after exclusions:
| Tag | Delta Nonpaged MB | Delta Paged MB |
|---|---|---|
File |
+4.04 | 0 |
IoFE |
+0.35 | 0 |
Toke |
0 | +0.09 |
SeAt |
0 | +0.01 |
SeTl |
+0.01 | 0 |
Interpretation: the short observation period was much more stable after Defender exclusions, but this does not reclaim previously accumulated kernel pool.
Hypothesis
Codex Desktop's workload appears to trigger sustained kernel pool growth through a combination of:
- High-frequency file open/read/write/stat activity.
- High-frequency subprocess creation (
cmd.exe, PowerShell,node_repl.exe, plugin/tool servers). - Named pipe traffic between the desktop app, runtimes, and tool/plugin hosts.
- File filter/minifilter interaction, including Microsoft Defender
WdFilter,fltmgr,bindflt, and possibly cache/compatibility filters such asahcache.
The leak/retention is likely in the Windows kernel/filter-driver path rather than in Codex user-mode heap directly. However, Codex is the repeatable trigger and should either reduce the triggering pattern or document/ship mitigations.
Suggested investigation
- Reproduce on Windows with Defender real-time protection enabled and Codex Desktop running tool-heavy sessions for multiple hours or days.
- Track
PoolNonpagedBytes,PoolPagedBytes, and pool tagsFile,IoFE,Toke,SeAt,SeTl,NpFr,NpFR,Obtb. - Run WPR with pool stack capture while Codex is active.
- Inspect named-pipe and file-handle lifecycle in Codex Desktop,
codex.exe,node_repl.exe, and extension/plugin hosts. - Look for unbounded creation of short-lived pipes, file handles, threads, tokens, or child processes.
- Test whether batching/reusing tool runtimes and named pipes reduces
NpFr/NpFRandFile/IoFEpressure. - Test with Defender exclusions for Codex-specific paths/processes to confirm the
WdFilterinteraction. - Consider official Windows/Defender guidance for Codex Desktop exclusions if this interaction is expected.
- Add a Codex diagnostic bundle command that captures process tree, handle counts, pool tags, and relevant WPR profiles.
Suggested product mitigations
- Reuse long-lived runtime/tool processes where possible instead of creating many short-lived shell/node/PowerShell processes.
- Reuse named pipes or IPC channels where possible.
- Reduce file-system polling/scanning of Codex workspace/plugin/runtime directories.
- Avoid placing high-churn transient files under locations aggressively scanned by Defender when possible.
- Provide a documented, narrow Defender exclusion list for Codex Desktop on Windows.
- Add a warning/diagnostic when kernel pool tags grow unusually during long Codex sessions.
I have parsed CSV summaries and a 39 GB raw ETL locally and can provide them if maintainers want specific files.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #30389
- #30926
- #30512
- #30992
Powered by Codex Action
Follow-up: current Codex build, ETW process storm, and live kernel object ownership
I reproduced the same failure mode on a current Codex Desktop build and collected additional ETW, PoolMon, and live-kernel-dump evidence.
Environment
- Windows 11 Home 25H2, build
26200.8655, x64 - 32 GB RAM, AMD Ryzen 9 7845HX
- Codex Desktop package
OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g0 - Git for Windows
2.55.0.windows.2 - Kaspersky for Windows
21.23.6.614
Codex-triggered process churn
During a 35-second WPR/ETW process trace, there were 846 new processes:
git.exe 526
conhost.exe 291
powershell.exe 28
wpr.exe 1
The trace contained 263 direct ChatGPT.exe -> git.exe starts. (ChatGPT.exe is the desktop process image in this Codex package.) The dominant repeated command was:
"C:\Program Files\Git\cmd\git.exe" -c core.hooksPath=NUL -c core.fsmonitor= rev-parse --show-toplevel
The selected workspace root contained an empty .git directory with no HEAD. Renaming that directory out of the workspace stopped the Git storm in subsequent samples (git.exe count remained zero). This is consistent with #29110, #28631, and #26812: a failed repository-root probe appears to be retried without effective negative-result caching or backoff.
Exited process objects were retained
Stopping the Git storm prevented the catastrophic creation rate, but did not reclaim objects already retained during that boot. At approximately 45 minutes uptime, with only 245 active processes and zero live git.exe processes, PoolMon showed:
Tag Allocs Frees Diff Bytes
Proc 54,424 1 54,423 195,052,464
MiP2 54,425 1 54,424 83,595,264
PsIn 571,486 517,062 54,424 8,233,440
A reboot reclaimed the accumulated pool. With the empty .git mitigation still in place:
- At 78 minutes uptime:
Proc Diff=1,367,Frees=1, zerogit.exe. - At 111 minutes uptime:
Proc Diff=2,187,Frees=3, zerogit.exe.
This reduced the growth rate by roughly 98%, but process-object frees still remained close to zero, so the retention path was mitigated rather than fully resolved.
Live kernel dump: sampled holder was Kaspersky
A live kernel dump captured one exited git.exe process object created by ChatGPT.exe. Debugger analysis showed:
- The exited process object still had two external handles.
!findhandlefound both handles in Kaspersky'savp.exe.!obtraceincluded Kaspersky process-notify/filter stacks involvingarkmon,klflt,klgse, andklif.- Across all reference tags, the sampled object had three net outstanding references.
The large +32768 value visible in the object trace is Windows process-object reference bias, not 32,768 leaked references. The sampled evidence proves that avp.exe was the immediate external handle holder for this exited process object at capture time. It does not prove that Kaspersky permanently leaks every object, or that Kaspersky alone is the root cause.
The evidence supports an interaction model:
- Codex generates an abnormal volume of short-lived Git/console processes when repository discovery loops.
- Security/filter software inspects those processes and temporarily opens protected process handles.
- Closure lag or backlog retains exited Windows process objects and their
Proc/MiP2/PsInallocations. - Windows cannot reclaim those objects while external handles or references remain.
After adding narrow Kaspersky trusted-application rules, a controlled run of 64 immediate-exit cmd.exe children still produced Proc AllocDelta=145, FreeDelta=0; Kaspersky's Process-type handle count increased by only 7. The rules reduced the workload but did not restore timely reclamation.
Requested fix and diagnostics
Please investigate the Windows desktop repository-discovery loop and:
- Cache a negative repository-root result and apply retry backoff.
- Treat an empty/invalid
.gitdirectory as a bounded error instead of continuously spawninggit.exe. - Debounce and deduplicate identical
rev-parse --show-toplevelrequests per workspace. - Rate-limit or reuse short-lived shell/Git subprocesses on Windows.
- Add diagnostics exposing the refresh trigger, command category, workspace-path hash, retry count, and in-flight deduplication state.
- Consider a user-facing switch to disable automatic Git metadata polling as an emergency workaround.
This evidence also connects the Git/process reports in #26812, #29110, and #30926 with the Kaspersky interaction reported in #17955. It suggests a cross-product amplification path rather than a simple user-mode heap leak or a single-vendor failure.
I have a 3.6 GB live kernel dump plus sanitized PoolMon, ETW, and debugger summaries. I will not attach the raw dump publicly because it may contain sensitive kernel memory, but I can provide selected sanitized artifacts or use a private upload channel if an OpenAI maintainer requests them.
Additional reproduction: Browser/CUA runtime mitigation stopped observed pool growth
I reproduced the kernel-pool growth on Windows with the current Desktop package:
- Codex Desktop:
OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g0 - Before reboot:
- Paged Pool: 7.174 GB
- Nonpaged Pool: 1.200 GB
- Committed: 24.007 GB
- Available: 13.563 GB
- The demonstrated Codex process tree itself accounted for only about 1.2 GB working set, consistent with the retained memory being kernel pool rather than normal process-private memory.
A reboot reclaimed the accumulated pool:
- Paged Pool: 0.475 GB
- Nonpaged Pool: 0.506 GB
- Committed: 12.623 GB
- Available: 21.238 GB
Additional local observation
The Codex configuration had:
browser@openai-bundledinstalled and enabled- three live
node_repl.exeprocesses - native-pipe settings including
SKY_CUA_NATIVE_PIPE=1 - a
turn-endednotify hook launchingcodex-computer-use.exe
Simply editing generated config.toml entries was not persistent: Codex recreated the file at the next startup and re-injected the Browser/node_repl configuration.
The persistent mitigation used was:
codex plugin remove browser@openai-bundled
codex mcp remove node_repl
codex features disable browser_use
codex features disable browser_use_external
codex features disable browser_use_full_cdp_access
codex features disable computer_use
codex features disable in_app_browser
I also removed the generated turn-ended notify entry and terminated only the three Codex-runtime node_repl.exe processes.
Verification after mitigation:
browser@openai-bundled: not installednode_repl.exe: 0codex-computer-use.exe: 0- Paged Pool over 10 seconds: 0.496 -> 0.497 GB (+0.2 MB)
- Nonpaged Pool over 10 seconds: 0.468 -> 0.466 GB (-2.2 MB)
- The user also observed that the pool stopped continuously increasing.
No Microsoft Defender exclusion was added.
This is a short observation window and does not prove that Browser/CUA is the sole cause. The workspace still contains an empty/invalid .git directory, so the repository-discovery behavior described in the other follow-up remains a possible concurrent trigger. However, the result suggests that Browser/CUA node_repl native-pipe activity and the per-turn codex-computer-use.exe hook are worth isolating in a controlled reproduction.
It may also be useful for Codex to avoid silently re-injecting removed generated MCP/notify configuration, or to expose a single supported “safe mode” that disables Browser/CUA runtimes and high-churn background tooling while diagnosing Windows pool growth.
I am seeing what appears to be the same issue on Windows 11.
In-app Codex feedback session ID: 019ee25c-ca99-7c93-b434-1997d09c7386
Environment:
- Windows 11
- 32 GB RAM
- Codex Desktop
- ChatGPT Classic also installed
- F-Secure Endpoint Protection
- F-Secure VPN tested with Hydra and WireGuard
- OneDrive used for the main Codex project workspace
Observed behavior:
- During extended Codex use, RAM usage rises toward 90–98%.
- Task Manager does not show any single user-mode process consuming the memory.
- RAMMap shows the retained memory at kernel level.
- In bad state, I have observed:
- Page Table approximately 8.5–9.9 GB
- Nonpaged Pool approximately 2.7–3.1 GB
- Paged Pool approximately 2.1–2.8 GB
- Closing Codex does not reliably release the already accumulated kernel memory.
- Reboot is required to recover.
Controlled observations:
- ChatGPT Classic alone stayed stable.
- Codex active with OneDrive closed still caused CommittedMB and kernel pools to grow.
- OneDrive significantly worsened the growth, but was not the only trigger.
- git.exe was not active during later growth tests, so Git is not the sole cause.
- Earlier, broken empty .git folders in the OneDrive workspace caused repeated git.exe rev-parse / core.fsmonitor polling, but memory growth also occurs without git.exe running.
Example measurement with Codex active and OneDrive closed:
- AvailableMB: 9657 -> 9474
- PoolNonpagedMB: 1979.5 -> 1996.3
- PoolPagedMB: 1893.4 -> 1923.7
- CommittedMB: 25579.9 -> 25972.5
- OneDriveWorkingMB: 0 throughout
Example measurement after stopping Codex / ChatGPT / OneDrive:
- AvailableMB stabilized
- CommittedMB stabilized
- PoolNonpagedMB and PoolPagedMB stopped growing
This looks consistent with the issue described here: Codex appears to trigger Windows kernel memory / pool growth. In my case OneDrive and endpoint protection may amplify the issue, but Codex appears to be the repeatable trigger.
I can reproduce a very similar issue on Windows, and I collected both PoolMon data and a targeted WPR trace.
System details:
- Windows 11, build 26100
- 32 GB physical RAM
- Codex Desktop package:
OpenAI.Codex_26.707.9564.0_x64 - Main executable:
ChatGPT.exe - AMD RX 7900 XTX, driver
32.0.31021.5001 - Only one physical GPU is active; there is no active iGPU
- Huorong Security is installed, with
sysdiag.sysversion6.0.0.3
At the time of diagnosis:
- Memory usage reached approximately 88%
- System commit was approximately 42.5 GB
- Paged pool was over 8 GB
- Nonpaged pool was approximately 4–5 GB
- Normal user-mode process memory did not account for this usage
The largest PoolMon tags included:
FMfn: 4,292.67 MiBFile: 1,658.58 MiBNtfc: 659.58 MiBIoNm: 593.96 MiBIoFE: 576.68 MiBSQSF: 440.14 MiB
Over a 36.82-minute PoolMon interval, FMfn increased by 68.26 MiB, or approximately 1.85 MiB/minute.
I then captured a targeted 155-second WPR trace containing allocation and free stacks for FMfn. The resulting ETL was only 207 MiB.
The trace contained:
- 82,218 pool events
- 0 malformed events
- 40,471 paged
FMfnallocations - 22,854 paged
FMfnfrees - Net paged
FMfngrowth: +6.607 MiB
The most significant finding was extreme Git process churn:
- 3,047
git.exeprocess lifetimes in approximately 155 seconds - 1,508 were directly parented by the Codex
ChatGPT.exeprocess - This is approximately 9.7 directly spawned Git processes per second
The most frequent commands were:
- 1,933 ×
rev-parse --show-toplevel - 642 ×
config --null --get core.fsmonitor - Repeated
status,read-tree,ls-files, and related repository queries
Representative allocation stacks included:
CreateFileW
-> fltMgr
-> sysdiag.sys
-> normalized file-name query
-> bfs.sys
-> FltpAllocateFileNameInformation (FMfn)
and:
git.exe
-> GetFileAttributesW
-> fltMgr
-> bindflt.sys!BfGetPreCreateFileName
-> FltpAllocateFileNameInformation (FMfn)
Within the top 100 outstanding stack groups:
- 56.4% of the represented outstanding bytes contained
sysdiag.sys - 71.4% contained
bindflt.sys - 68.7% contained
bfs.sys
These categories overlap because several filters appear in the same call path. This does not prove that Huorong is solely responsible, but it strongly suggests that Codex’s abnormal Git/file-query workload is being amplified or retained by the Windows minifilter stack.
I did not find evidence that the GPU was the primary source. During the same 36.82-minute interval:
003D: 0 MiB growthDAL3: +1.70 MiBVi54: +1.00 MiB
Could the Codex team investigate why the desktop app is launching thousands of short-lived Git probes and whether repository-state polling can be debounced, cached, or disabled? On this machine, the Git process storm appears to be the workload trigger, while the file-filter stack is where the kernel-pool allocations accumulate.
I can provide sanitized PoolMon snapshots and stack reports. The raw ETL contains local paths and command lines, so I would prefer not to upload it publicly.
Follow-up: current Windows build, NtFC allocations map almost 1:1 to minifilter failures and all outstanding stacks include bindflt.sys
I reproduced the same kernel-pool growth on a newer Codex Desktop build and collected a focused WPR Pool + Minifilter trace. This reproduction is especially concentrated in the nonpaged NtFC tag.
Environment
- Codex Desktop (Microsoft Store):
OpenAI.Codex_26.715.4045.0_x64 - Main desktop image:
ChatGPT.exe - Windows 11 Home 25H2, build
26200.8875, x64 - Physical memory: approximately 64 GB
bindflt.sys:10.0.26100.8655- CPU: AMD Ryzen 9 9955HX3D
- GPUs:
- AMD Radeon 610M, driver
32.0.21032.8002 - NVIDIA RTX 5090 Laptop GPU, driver
32.0.16.1047
- AMD Radeon 610M, driver
User impact and live growth
Before reboot, nonpaged pool reached approximately 52.7 GB. Normal user-mode process memory did not account for it.
After reboot and reopening Codex Desktop, an 11-second counter sample showed:
Nonpaged pool: 3.394 GB -> 3.498 GB
Growth: 106.8 MB in 11 seconds
Rate: 10.59 MB/s
The CLI was present during the same session but idle; the active Codex Desktop ChatGPT.exe process was the workload correlated with the growth.
WPR capture
The trace was collected with:
wpr -start Pool -start Minifilter -filemode
# reproduce briefly
wpr -stop Codex-NtFC.etl
Trace summary:
Duration: ~38 seconds
Total events: 42,740,771
Events lost: 0
PoolAllocation events: 5,635,321
PoolFree events: 5,491,123
Minifilter PreOpInit: 1,683,804
Minifilter PreOpFailure: 128,626
FileIO Create: 258,060
FileIO Cleanup: 530
FileIO Close: 498
NtFC ownership
The focused pool-event parser found:
NtFC events: 143,536
Outstanding NtFC allocations: 128,636
Codex Desktop main ChatGPT.exe:
Allocations: 128,778
Frees: 144
Net outstanding count: 128,634
Net outstanding bytes: 18,523,296
Therefore, 128,634 of 128,636 outstanding NtFC allocations created during the trace were attributed to the Codex Desktop main process.
The 128,626 Minifilter PreOpFailure events are almost a one-to-one match with the 128,634 outstanding Codex-attributed NtFC allocations.
Stack evidence
The ETL was converted to ETLX and all 128,636 outstanding NtFC allocations were inspected with call stacks.
Every outstanding allocation stack contained:
ntoskrnl.exe
ntfs.sys
fltmgr.sys
bindflt.sys
ntdll.dll
kernelbase.dll
kernel32.dll
chrome.dll
The common file-filter chain was:
ntfs.sys -> fltmgr.sys -> bindflt.sys
128,636 outstanding allocations
18,523,584 bytes represented
100% of outstanding NtFC allocations
Notably, none of the outstanding NtFC stacks contained:
WdFilter.sysbfs.sysCldFlt.sys- AMD or NVIDIA display-driver modules
This does not prove that bindflt.sys alone is the root cause. It does show that, in this reproduction, Codex Desktop's Chromium/main-process file activity is the repeatable trigger and the retained NtFC allocations all pass through the Windows Bind Filter path.
Unsafe diagnostic result: unloading bindflt caused a bugcheck
As a diagnostic only, fltmc unload bindflt was attempted. The system immediately became unstable and restarted with:
Bugcheck: 0x0000003B SYSTEM_SERVICE_EXCEPTION
Exception: 0xC0000005
Dump: C:\Windows\Minidump\071826-17921-01.dmp
After reboot, bindflt returned to its normal RUNNING / AUTO_START state.
I do not recommend unloading or disabling bindflt as a workaround. I am including this only because it further indicates active dependency on this filter path and because maintainers should avoid suggesting that mitigation.
Requested investigation
Please investigate:
- Why the Codex Desktop main process generates approximately 128k minifilter pre-operation failures in under 40 seconds.
- Whether a failed file/open/path-resolution operation is being retried without effective caching, deduplication, or backoff.
- Whether packaged-app path mapping through
bindflt.sysexposes a lifecycle bug that is not triggered by the CLI. - Whether Codex can detect this sustained kernel-pool growth and stop/restart the offending file-query loop before system memory is exhausted.
- Whether a supported diagnostic or safe mode can disable high-churn desktop background file probing without modifying Windows filter drivers.
Diagnostic artifacts
Available locally:
- Raw WPR ETL: approximately 2.5 GB
- Generated ETLX: approximately 6.1 GB
- Minidump: approximately 7.3 MB
- Sanitized allocation/count/stack summaries
I have not uploaded the raw ETL or dump publicly because they may contain local paths or process memory. I can provide sanitized summaries or use a private upload channel if requested.
Having this same issue
────────────────────────────────────────────────
• The leak is in the Windows filesystem-filter path, not Codex’s own process handles.
- System (PID 4) owns ~1.05 million handles.
- ~1.043 million are File handles.
- The long-lived Codex desktop process has only 857 handles, so it is the trigger—not the owner.
Best attribution: Microsoft bindflt.sys (Windows Bind Filter), likely interacting with WdFilter.sys (Microsoft Defender) and named-pipe/filter-manager traffic. Codex’s Windows sandbox repeatedly creates file/pipe/subprocess activity; the filter path appears to retain kernel file objects after that work ends. Your machine is on Windows build 26200 with bindflt, bfs, wcifs, and WdFilter active on the relevant volumes.
This closely matches an open Codex Windows issue with ETW stack evidence through npfs → fltmgr → bindflt, and a separate Defender interaction in token/security allocations: issue #31212 (https://github.com/openai/codex/issues/31212). Microsoft documents that bindflt.sys transparently redirects filesystem namespaces, exactly the mechanism used by this sandbox-style path. Bind Filter documentation (https://learn.microsoft.com/en-us/windows/win32/bindlink/)
So: not NVIDIA, Dropbox, or the LatencyMon driver. The practical culprit is the Windows bind/filter stack, with Defender a plausible amplifier. I would not unload or disable bindflt; it is system-critical and known to destabilize systems when removed.
A reboot is the safe way to reclaim the already leaked handles. To prove the single driver conclusively on this PC would require a short, bounded kernel ETW/WPR trace; that trace can be large, so I have not started one.
Additional affected-system report: Codex 26.901.1978.0, 17.299 GiB in NtFC, and a ReFS Dev Drive inside an NTFS-backed VHDX
Adding an affected Windows system report from September 5, 2026, with a storage-layout detail that may matter for reproducing this issue. There are no installed WSL distributions, but there IS a mounted VHDX: a ReFS development volume whose backing .vhdx file resides on NTFS. Please do not interpret “no WSL distributions” as “no virtual-disk I/O.”
Environment
- Windows build:
26200.8875. - Codex Desktop package version:
26.901.1978.0. - Physical memory reported by Windows:
31.52 GiB(32 GB system). - A mounted VHDX used as a development drive, formatted as ReFS internally; the VHDX backing file is stored on an NTFS host volume.
- No installed WSL distributions.
- The local diagnostic summary lists
bindflt,FsDepends, andwcifsattached toC:. This is an inventory observation, not proof that any one of these components owns the retained allocations.
Memory measurements from the affected session
These values are preserved in a local diagnostic transcript, rather than independently revalidated from a retained raw kernel trace:
| Metric | Reported value |
|---|---|
| Physical memory in use | 98.12% |
| Available physical memory | 484 MiB |
| System nonpaged pool | 20.903 GiB |
NtFC nonpaged allocations |
17.299 GiB |
NtFC outstanding allocation count |
110,418,754 |
| Average bytes per outstanding allocation | 168.2 |
| System commit / commit limit | 61.857 / 69.242 GiB |
| Sum of process working sets reported by the diagnostic | 3.95 GiB |
The nonpaged-pool counters, rather than the working-set sum alone, are the evidence that a substantial part of the memory pressure was in the kernel. I am using NtFC as the exact pool-tag spelling; the tag alone does not establish the precise object type or which component failed to release a reference.
Codex Desktop was running during the affected session. The summary recorded nine ChatGPT.exe/codex.exe processes. The main desktop process had accumulated 2,819,098 Other I/O operations, and codex.exe had accumulated 1,656,120. These are cumulative counts, not measured rates and not proof of a retry loop.
The final few local samples had stopped growing, but the approximately 17.3 GiB already attributed to NtFC remained allocated. A Windows restart was initiated for recovery. I do not have a retained before/after reboot comparison or a controlled Desktop-off comparison from this machine, so I am not claiming that closing Codex has been proven to stop the growth here.
Why the storage topology matters
There are at least two paths to distinguish:
- Direct NTFS activity from Desktop, Git, runtimes, caches, or packaged-app AppData.
- Activity on the ReFS development volume that reaches its NTFS-backed VHDX through the virtual-disk stack.
The absence of WSL does not eliminate the second path. Conversely, the presence of this VHDX does not prove it is the trigger; its causal involvement has not been isolated. The shared NTFS-backed-VHDX topology may be relevant to microsoft/WSL#40804, but I am not asserting that the two reports have the same underlying bug.
The detailed NtFC/bindflt trace already posted in this thread on Windows build 26200.8875 is useful related evidence, but those stacks are from another machine, not mine. A roughly 17 GB ETL produced during my local diagnosis was deleted; there are no retained, validated allocation stacks to attach. bindflt was not unloaded.
Requested investigation and practical mitigation
Please include native mounted ReFS Dev Drive VHDXs backed by NTFS, not only WSL/Docker disks and ordinary NTFS working directories, in the reproduction matrix. It would help to distinguish Desktop background file/Git probing from development-volume activity and host-side VHDX I/O before assigning this to a particular filter driver.
I need a low-disruption workaround that preserves my development volume and security settings. A supported way to suppress or bound Desktop background filesystem/Git refresh activity, or a documented client/version workaround, would be more practical than large trace captures or repeated mount/unmount experiments on a work machine. I have not validated a CLI-only workaround on this system and am not reporting one as a confirmed fix.
Only the sanitized diagnostic summary is included here; local paths, unrelated service details, credentials, and raw memory/trace data have been omitted.
Additional Windows 11 reproduction with direct SystemPoolTagInformation measurements.
Environment at exhaustion
- Windows 11 build
26200.8875 - 31.52 GiB physical RAM
- Codex Desktop
26.901.1978.0 - Nine
ChatGPT.exe/codex.exeprocesses; the Desktop process tree had been running since 13:08 - WSL had no installed distribution on this host
Memory accounting
At the failure point:
- Physical memory usage: 98.12%
- Available memory: 484 MiB
- Sum of process working sets: 3.95 GiB
- Nonpaged pool: approximately 20.9 GiB
- Commit: 61.857 / 69.242 GiB
- System PID 4 handle count: 403,492
A direct NtQuerySystemInformation(SystemPoolTagInformation = 0x16) sample showed:
Tag: NtFC
Nonpaged bytes: 18,574,637,216 (17.299 GiB)
Nonpaged allocations: 1,607,446,837
Nonpaged frees: 1,497,028,083
Outstanding: 110,418,754
Average retained size: 168.2 bytes
NtFC accounted for the overwhelming majority of the missing process-unattributed memory. Its byte count remained flat during the final idle observation, but the 17.299 GiB already retained was not reclaimed.
The main ChatGPT.exe process had accumulated 2,819,098 Other I/O operations; the Codex app-server process had accumulated 1,656,120. Active filters included bindflt, FsDepends, wcifs, WdFilter, and bfs, plus third-party filters. I did not capture local allocation stacks, so process/driver attribution on this machine remains a high-confidence correlation with the reproduction already documented in this issue, not independent stack proof.
The wcifs context tags did not track the leak one-to-one on this host:
NtFC live: 110,418,754
WCsc live: 392,906
WCfc live: 278,629
That makes the specific WCsc lockstep retention pattern reported elsewhere unlikely to explain this sample.
Reboot result
A full restart immediately reset the retained state:
NtFC live allocations: 110,418,754 -> 5
NtFC retained GiB: 17.299 -> effectively 0
Nonpaged pool GiB: 20.9 -> 1.522
Available memory MiB: 484 -> 7,382
After reboot, Codex Desktop updated to 26.901.4073.0. Is any mitigation for the ChatGPT.exe -> bindflt/fltmgr -> ntfs.sys retention path included in that Desktop build? If useful, I can collect a short post-reboot Pool + Minifilter WPR trace before the pool becomes too large.
Independent reproduction: Codex 26.903.9818.0, GPUCache file-open storm and NtFC growth; narrow shader-disk-cache workaround
Adding a separate affected-system report and a measured mitigation for the NtFC/bindflt path discussed above. The isolated trigger on this machine is Chromium GPU shader-cache file activity in the Codex desktop main process. Git scanning was not established as the trigger in this reproduction.
Environment
- Codex Desktop Microsoft Store/MSIX package:
OpenAI.Codex, version26.903.9818.0. - Windows 11 24H2, build
26100.6584, x64; 64 GB installed RAM. bindflt.sysfile version:10.0.26100.5074.- The package and app data use a non-system NTFS volume with junction/MSIX path redirection. Actual usernames, drive letters, SIDs and project paths are omitted. This topology is a possible contributing condition, not a proven sole cause.
Observed failure
System nonpaged pool reached approximately 40.68 GiB. Direct NtQuerySystemInformation(SystemPoolTagInformation) sampling showed rapid growth in the exact, case-sensitive pool tag NtFC.
In a normal-launch baseline, four samples over 61.46 seconds measured +119.219 MiB NtFC, or approximately 116.389 MiB/min. The desktop main process generated about 109,077 Other I/O operations/s. Other I/O counters are not being equated with file-open counts.
Two shader-cache rebuild attempts and an ordinary complete app exit/relaunch did not stop the problem. The already accumulated pool was not reclaimed by relaunching the app; a later Windows reboot cleared it.
Allocation stack and file activity
A bounded ETW pool trace with matched symbols identified this dominant outstanding-allocation stack in the Codex desktop main ChatGPT.exe process; chrome.dll belonged to the installed Codex package:
chrome.dll
-> KernelBase!CreateFileW
-> bindflt!BfPreCreate
-> bindflt!BfpDoesFileExistWithCrossVolumeECP
-> FltCreateFileEx2
-> NTFS!NtfsCommonCreate
-> NTFS!NtfsGetReparsePointValue
-> ExAllocatePoolWithTag [NtFC]
One dominant stack group contained approximately 209,377 allocations still outstanding at the end of that trace. This records allocation context, not definitive ownership of the missing cleanup.
A separate 15.986-second file trace recorded:
- 227,386 main-process
FileIoCreateevents. - 227,061 of those under
Default\\GPUCache. - 113,636 name-not-found completions across the main process.
- Earlier tracing also found a similar pattern under
GrShaderCache.
Normal STATUS_REPARSE events were counted separately from name-not-found failures; reparse status alone is not being called an error.
Measured workaround
Completely exit Codex, then launch the installed desktop executable with the single additional argument:
--disable-gpu-shader-disk-cache
We verified the flag in the newly started main process's command line. No cache rebuild, user-profile reset or additional launch flag was applied in this comparison. We did not add --disable-gpu, change security settings, or unload filter drivers for this test.
| Measurement | Normal launch | With shader disk cache disabled |
|---|---|---|
| NtFC growth, normal baseline vs. post-startup stable window | 116.389 MiB/min | 0.025469 MiB/min |
| Main-process Other I/O, same respective windows | ~109,077/s | ~107/s |
| File trace duration | 15.986 s | 15.648 s |
| Main-process FileIoCreate events | 227,386 | 726 |
| Main-process GPUCache FileIoCreate events | 227,061 | 0 |
The workaround run had 21 samples over 608.403 seconds. The full window still accumulated 30.938 MiB NtFC, almost all during the first minute; its full-window rate was approximately 3.051 MiB/min. After that first minute, growth was 0.232 MiB over 547.535 seconds. The stable-window rate must not be mistaken for the whole-run rate.
Neither GPUCache nor GrShaderCache FileIoCreate events were observed across the ChatGPT.exe processes during the short workaround file trace. Both file-trace sessions reported zero lost events/buffers. The older xperf decoder emitted warnings for two non-target processes; original traces were retained.
Reboot validation
After a Windows reboot and launch through the same flagged shortcut, 11 samples over 303.95 seconds measured:
- NtFC: 37.894806 -> 37.965836 MiB; approximately 0.014 MiB/min.
- System nonpaged pool: 905.473 -> 914.191 MiB.
- Available RAM at the end: approximately 50.31 GiB.
This supports a short-term mitigation on this machine, not a permanent fix or proof of long-duration stability. It stops most new growth in this reproduction; it does not itself free already retained kernel memory.
Request for investigation
The stack overlaps the NtFC/bindflt reports in this thread and #16786. Please include Chromium GPUCache/GrShaderCache failed-file probing, junctions and packaged-app path mapping in the reproduction matrix alongside Git workloads.
Could maintainers confirm whether a supported mitigation or a specific Desktop/Windows fix exists, and investigate why cache-file probing repeats at this rate? A supported shader-disk-cache fallback or bounded retry behavior may reduce exposure while the underlying cleanup path is investigated.
We have not independently verified the instruction-level bindflt defect proposed by another reporter, and our bindflt build differs. These measurements do not establish which component ultimately owns the defect.
Only this sanitized summary is being shared. Raw ETL/dump files, command-line inventories, account identifiers, project names and personal filesystem paths are not attached.
Same pattern here with a different agent CLI (Claude Code), so it does not look Codex-specific.
Environment
- Windows 11 Pro 25H2, build 26200.9445
- Defender platform 4.18.26080.3, engine 1.1.26080.3, real-time protection and tamper protection on
- Ryzen 9 9950X3D, 128 GB RAM
- Workload: AI coding agents, Node.js dev servers, Rust builds
What happened After a 24-day kernel session (Fast Startup kept the kernel alive across nightly shutdowns), commit charge reached 133.9 of 134.4 GB while 33.7 GB of physical RAM was still free. Paged pool 20.35 GB, nonpaged 13.03 GB. Killing every process did not return it; only a reboot did. After a clean boot the pool grew again to 34.3 GB in 67 hours.
What I measured
- Tags leading the growth:
FMfn,FMsc,FMsl, withFile,NtffandMmStmoving alongside. - The cost is per distinct path opened, not per operation: roughly 6-12 KB for a cold path and ~0.3 KB when the same path is opened again. Enumerating a tree without opening files costs essentially nothing. One recursive
grepover a large tree drove the pool at ~7.8 GB/h. - Defender path exclusions separate it cleanly: unexcluded trees open at 121-229 files/s, excluded trees at 3,656-5,153 files/s, and excluded opens are 15-60x cheaper in pool. Exclusions slow the inflow but do not give back what already accumulated.
- Reclamation exists but is far smaller than the inflow: over ~101 hours of 5-minute samples, ~80 GB allocated against ~11 GB reclaimed, with trims happening even at >45 GB of commit headroom.
wcifshad no instances in the filter map and none of its pool tags (WCsc,WCri,WCfc) appeared in any capture, so this does not look like the WSL boundary leak in microsoft/WSL#41296, althoughFMfnappears there too.
Follow-up on the earlier shader-cache workaround report: I repeated the A/B on Codex Desktop 26.1013.3656.0.
- Normal launch, 10 minutes: nonpaged pool +6.232 GiB;
NtFC+5.990 GiB. - Codex closed for about 10 minutes:
NtFCstayed flat. - Relaunched with
--disable-gpu-shader-disk-cache, 10 minutes: nonpaged pool +0.019 GiB;NtFCstayed flat within ~1 MiB sampling resolution.
This run used the same session without rebooting between phases. The flagged phase followed the large normal-launch increase, so treat it as a short A/B result, not proof of lasting stability. RAM use still rose from 53.98% to 60.88% during the flagged phase; ChatGPT/Codex working set rose by ~1.8 GiB and Node working set by ~0.8 GiB. The result is specific to kernel-pool/NtFC growth, not total RAM use. It does not establish the root cause or a permanent fix.
Correction + root cause for the Proc / zombie-process part of this issue: old AMD display driver (amdkmdag.sys)
Short version: My July comment above blamed Kaspersky for retaining exited process objects (Proc / MiP2 / PsIn growth). That was wrong. I uninstalled Kaspersky completely and the leak did not change. Kernel object-reference tracing shows that the reference keeping every exited process alive is taken by the AMD display driver amdkmdag.sys and never released. Updating the AMD driver fixed it: 200 short-lived processes went from 272 retained to 0.
This is a different leak from the NtFC / FMfn reports in this thread, but it piles up the same way: memory disappears into the kernel, Task Manager shows nothing, and only a reboot helps. Codex's process churn (in July, 526 git.exe in 35 s) makes it far worse.
How to tell which leak you have
| Growing pool tag | Cause | Fix / workaround |
|---|---|---|
Proc, MiP2, PsIn, Toke |
Zombie processes (this comment) | Update the AMD GPU driver |
NtFC |
bindflt file probing (GPU shader cache) |
--disable-gpu-shader-disk-cache (see comments above) |
FMfn, File, IoFE |
Minifilter file-name info (AV/Defender) | AV exclusions slow it down |
One-minute self-check (no admin, no tools). It prints the largest pool tags, starts 200 throw-away processes, and reports how many were not freed:
https://github.com/yzx-deepseek/windows-zombie-process-leak (Test-ZombieProcessLeak.ps1)
Evidence (summary)
- After 5 days of uptime: 155,797 outstanding
Procobjects with only 432 live processes. About 21 GB of commit belonged to no process, roughly 108 KB per zombie. cmd /c "for /l %i in (1,1,200) do @cmd /c exit"→ every exited process was retained, with or without Kaspersky installed.- No process gained Process-type handles during the test, so the holder was a kernel pointer reference, not a handle.
- With
ObTracePoolTags=ProcandObTraceProcessName=cmd.exe, a live dump and!obtraceshowHandleCount 0, PointerCount 1on each zombie. Summing references per module, everything balances exceptamdkmdagat +1:
+1 nt!PsLookupProcessByProcessId <- never dereferenced
amdkmdag+0xa0afb
amdkmdag+0x217d88 / +0x2180c8
nt!IopProcessWorkItem / ExpWorkerThread
(then ObOpenObjectByPointer -> NtQueryInformationProcess -> NtClose, all balanced)
- Machine: Ryzen 9 7845HX with Radeon 610M iGPU + RTX 4060 Laptop, Windows 11 build 26200.
- Leaking driver: 32.0.11002.41 (2024-05, OEM-supplied). Fixed: Adrenalin 26.10.1 / 32.0.21045.16010. The release notes don't mention it, so I don't know which version first fixed it.
If you see Proc growing and have an AMD GPU, check the driver date. Laptop OEM drivers are often years old, and Windows Update keeps serving them. If you're on a recent AMD driver and still see Proc growth, please share the script output. Another driver may have the same bug.
Full write-up, reproduction and trace method: https://github.com/yzx-deepseek/windows-zombie-process-leak