Skip to content

Windows app repeatedly spawns \git ls-files --others --exclude-standard -z; ntfs.sys NtFC nonpaged pool grows continuously #16786

Open

Description

@4ndrxxs

What version of the Codex App are you using (From “About Codex” dialog)?

26.325.31654 (1272)

What subscription do you have?

pro

What platform is your computer?

Microsoft Windows 11 Pro 10.0.26200 x64

What issue are you seeing?

I traced a Windows nonpaged pool growth problem to Codex Desktop repeatedly spawning child git.exe processes during normal app use.

In this environment, the user-mode trigger was Codex repeatedly launching:

git ls-files --others --exclude-standard -z

The kernel-side memory growth showed up under ntfs.sys pool tag NtFC.

I am reporting this here because the reproducible trigger appears to be Codex Desktop behavior, even if part of the retention/cleanup problem may also involve Windows NTFS or Microsoft Defender.

Observed evidence from the same affected session:

  • System nonpaged pool was growing while process-level nonpaged pool remained tiny, which pointed to kernel-side growth rather than a normal user-mode process pool leak.
  • Direct pool-tag sampling showed NtFC dominating and increasing.
  • After deleting all temporary trace files I created for diagnosis, NtFC still increased from 4984.46 MB to 5072.56 MB in 30 seconds (+88.10 MB).
  • NtFC ownership was confirmed locally by matching the tag string inside C:\Windows\System32\drivers\ntfs.sys.
  • During that same window, Codex.exe kept spawning child git.exe processes with the exact command:
    git ls-files --others --exclude-standard -z
  • New child git.exe pairs were observed at local times 2026-04-04 22:16:23, 22:16:26, 22:16:49, and 22:16:58, all parented by Codex.exe.
  • A short Procmon capture showed git.exe generating the most filesystem activity by a large margin (131,169 file events in about 3 seconds).
  • MsMpEng.exe was also highly active in the same capture (10,736 file events), which suggests Microsoft Defender amplifies the I/O pressure once Codex starts the scans.

What I ruled out in the same session:

  • This was not explained by process-local nonpaged pool usage.
  • High-handle but low-file-activity processes did not match the growth pattern.

What steps can reproduce the bug?

  1. On Windows 11 Pro 26200 x64, launch Codex Desktop 26.325.31654 (1272).
  2. Open a local workspace under the user profile.
    In my affected session, the active thread cwd was C:\Users\JW\Documents\playground.
  3. Leave the app open and use it normally, or keep the session open long enough for background repo/status activity to happen.
  4. Observe the process tree from elevated PowerShell / Process Explorer:
    • Codex.exe repeatedly spawns git.exe
    • the command line repeats as git ls-files --others --exclude-standard -z
  5. In parallel, sample Windows nonpaged pool / pool tags.
  6. Observe ntfs.sys NtFC nonpaged pool continuing to increase while those repeated git scans are occurring.

Repro status:

  • This reproduced multiple times in the same affected session.
  • I have not yet reduced it to a fully minimal deterministic repro outside the affected environment.

What is the expected behavior?

  • Codex Desktop should not repeatedly spawn unbounded background git ls-files --others --exclude-standard -z scans during normal or idle app use.
  • Repo scanning should stay scoped to the active workspace roots and should be debounced/cached appropriately.
  • Codex should not act as a user-mode trigger that drives continuously growing NTFS nonpaged pool on Windows.

Additional information

I understand the ultimate pool-retention bug may also involve Windows NTFS or Microsoft Defender, but the reproducible user-mode trigger in this environment was Codex repeatedly spawning git.exe.

Directionally related Codex reports:

If useful, I can provide follow-up artifacts from the affected machine, including:

  • process tree snapshots showing repeated Codex.exe -> git.exe
  • pool tag samples showing NtFC growth over time
  • Procmon summaries showing git.exe as the top filesystem event source

Activity

  1. added
    app
    on Apr 4, 2026
  2. added
    bug
    windows-os
    on Apr 4, 2026
  3. keydango27-maker commented on Jul 5, 2026

    @keydango27-maker

    I have another Windows Desktop data point that looks related to this issue, although the dominant pool tags are different on my machine.

    Environment:

    • Codex Desktop package: OpenAI.Codex_26.623.13972.0_x64__2p2nqsd0c76g0
    • Windows: build 26200 x64
    • GPU: AMD Radeon 780M
    • AMD display driver after update: 32.0.31021.5001 (amdkmdag.sys)

    Observed behavior:

    • After reboot + AMD/Windows updates, the earlier severe pool stock was cleared, but nonpaged pool still grows when Codex Desktop is open.
    • While Codex was closed for a while, nonpaged pool did not noticeably rise. After reopening Codex, File/IoFE growth resumed.
    • This does not look like a normal user-mode handle leak; process handle counts are modest compared with the kernel pool-object growth.

    PoolMon / A-B evidence:

    • After reopening Codex, current PoolMon showed roughly:
      • File ~270 MB
      • IoFE ~91 MB
      • SQSF participated earlier but is a Storage QoS amplifier, not the root cause
    • storqosflt.sys A/B test:
      • stopping storqosflt released SQSF from 37.42 MB to 0 MB
      • during the same 5-minute stopped window, File still grew by +15.38 MB
      • IoFE still grew by +5.53 MB
      • conclusion: Storage QoS amplifies/tracks the path, but does not cause the underlying File/IoFE growth.

    WPR/WPA evidence from an elevated trace:

    • Administrator WPR trace generated a 29 GB ETL; WPA Pool Graph export showed:
    Tag   impacting rows   amdkmdag.sys rows   chrome.dll rows   Codex.exe rows
    File  5,429            5,017               863               165
    IoFE  10,307           9,854               1,720             316
    SQSF  2,508            31                  13                73
    

    Representative interpretation:

    • The dominant File/IoFE stack family goes through amdkmdag.sys.
    • Codex.exe / Chromium (chrome.dll) stacks are present in the same File/IoFE trace.
    • This matches the runtime observation: closed Codex = no obvious growth; reopened Codex = growth resumes.

    Disk I/O evidence during the trace:

    • codex.exe <OpenAI.Codex> generated 7,177 disk I/O rows.
    • The hottest paths were:
      • %USERPROFILE%\.codex\logs_2.sqlite - 6,234 rows
      • %USERPROFILE%\.codex\logs_2.sqlite-wal - 1,327 rows
      • Codex package cache / Chromium cache paths under the Codex app package

    Current working hypothesis:

    • This appears to be the same broad class of Windows kernel nonpaged-pool pressure triggered by Codex Desktop background activity.
    • On my machine the strongest chain is:
    Codex Desktop / Electron / Chromium activity
    especially high-frequency .codex logs_2.sqlite + WAL writes and Chromium/GPU activity
    -> AMD graphics driver path (amdkmdag.sys)
    -> Windows File / IoFE nonpaged pool growth
    -> storqosflt/SQSF as a secondary amplifier
    

    So while my dominant tags are File/IoFE rather than NtFC, this looks directionally related: Codex Desktop user-mode activity is the reproducible trigger for continuously growing Windows kernel nonpaged pool. Happy to provide more exact PoolMon/WPA summaries if useful; the raw ETL is large (~29 GB).

  4. DesignMike commented on Jul 7, 2026

    @DesignMike

    I have this exact problem

  5. KeiraX commented on Jul 17, 2026

    @KeiraX

    me 2

  6. haoodddf commented on Jul 20, 2026

    @haoodddf

    Independent reproduction on a newer Windows desktop build

    I independently reproduced the same severe Windows nonpaged-pool growth on 2026-07-20. I have not yet verified the exact repeated git.exe command line on this machine, but the A/B behavior and dominant NtFC pool tag closely match this issue.

    Environment

    • Desktop package: OpenAI.Codex 26.715.4045.0 x64 (new unified ChatGPT/Codex desktop app; UI is labeled ChatGPT)
    • Windows 11 Home 25H2 x64, OS build 26200.8875
    • RAM: 64 GB

    Controlled closed → open → closed sampling

    Memory counters were sampled every 5 seconds.

    • App closed for ~2 minutes: system nonpaged pool stayed within 1275.8–1281.4 MB
    • App open for 10m31s: system nonpaged pool increased from 1394.2 MB to 6483.3 MB (+5089.1 MB)
    • Linear growth rate during the open phase: approximately 478.7 MB/min, with R² = 0.999685
    • App private memory did not grow with it: 1750.9 MB → 1717.9 MB
    • App process-level nonpaged pool remained approximately 0.28 MB
    • System paged pool remained roughly stable around 1.72–1.75 GB
    • After all ChatGPT/Codex processes exited (ProcessCount = 0), system nonpaged pool was 7684.4 MB and remained 7684.7 MB about 5 minutes later, so the accumulated pool was not meaningfully released

    Separate PoolMon reproduction

    System nonpaged pool (Pool N) increased as follows:

    • 23:50:59: 687,464 K
    • 23:55:15: 3,326,668 K
    • 23:56:28: 4,046,564 K

    At 23:55:15, the dominant entry was:

    Tag: NtFC
    Type: Nonp
    Allocs: 16,208,414
    Frees: 14,968
    Diff: 16,193,446
    Bytes: 2,331,856,224
    Per Alloc: 144
    Mapped driver: ntfs.sys - Create.c
    

    For comparison, NVRM was only about 67,096,576 bytes in the same sample, so the NVIDIA pool tag was not the dominant source.

    This confirms that the issue still reproduces on package version 26.715.4045.0, with the desktop app acting as a reliable user-mode trigger for rapid NtFC / ntfs.sys nonpaged-pool growth. I have the CSV time series and PoolMon screenshots available if maintainers need the raw artifacts.

  7. suiyuebaobao commented on Jul 22, 2026

    @suiyuebaobao

    The repeated git ls-files --others loop in this report is the same class of Git-backed refresh workload I reproduced.

    I published a single-file Windows launcher for the original Microsoft Store/MSIX Codex app:

    It starts Codex with a process-scoped GIT_DIR=NUL. On my machine, the stable trace changed from 247 new git.exe and 137 new taskkill.exe processes per 10 seconds to 0 and 0 over 15 seconds; WMI Provider Host fell from about 6.6% to 0.9%.

    Usage: fully exit Codex from the Windows system tray, then run the script.

    This is an unofficial workaround, not an upstream fix. It deliberately disables or limits Review, Changes, branch detection, commit, and other Git-backed Codex features. It does not patch Codex, modify repositories or Git configuration, write system environment variables, require elevation, terminate processes, or remove chat history. Launching Codex normally restores Git integration.

  8. maphew commented on Jul 23, 2026

    @maphew

    I triggered this runaway memory leak on myself by making my home dir a git repo (%USERPROFILE%\.git) months ago for forgotten reasons (probably to track dot-file customisation).

    • Codex treats entire profile as a repository
    • repeated full-profile git ls-files scans with 350 GB in 1.2 million untracked files (thank-you APPDATA and synced OneDrive)
    • Windows NTFS NtFC leak
    • nonpaged-pool exhaustion
  9. kdyoung9677-hub commented on Aug 3, 2026

    @kdyoung9677-hub

    Additional reproduction on Codex Windows 26.727.6591.0 (severe regression)

    I am seeing the same Codex-triggered untracked-file scan pattern on a current Windows build, with enough memory growth to freeze the whole machine.

    Environment

    • Codex desktop app: OpenAI.Codex_26.727.6591.0_x64
    • Windows 11 Home x64, version/build 10.0.26200
    • Git for Windows: 2.53.0.windows.1
    • Native Windows / PowerShell agent
    • Local Git repository (repository name, username, and local paths intentionally omitted)

    Observed command

    Codex spawns four concurrent copies of this command without an explicit Git request:

    git.exe -c core.quotepath=false -c safe.directory=* -c core.fsmonitor=false ls-files --others --exclude-standard --full-name :/
    

    Impact and frequency

    • More than five incidents during the last three days.
    • Two incidents on 2026-08-03 alone.
    • In one measured incident, the four matching git.exe processes each consumed approximately 2,560–2,973 MB, about 11 GB total.
    • Windows subsequently reported low virtual-memory/pagefile pressure, the Codex app became unresponsive, and the machine/UI fully froze, interrupting active work.
    • The system-managed pagefile was enabled (about 17 GB allocated), so this was not a disabled-pagefile configuration.
    • Normal Codex app exit caused all four child scans to disappear and recovered about 11.8 GB of available RAM.
    • After restarting the same app version, the scans initially stayed at zero but were recreated following later ordinary workspace/thread activity. In a later recurrence, four copies were already at roughly 507–602 MB each when detected.
    • This started after the 26.727 app update; there had been no comparable incident in roughly the preceding 30 days.

    Why this appears app-side

    • No user-requested Git operation launched these commands.
    • The four commands are identical and run concurrently against the same workspace.
    • They disappear with a normal Codex app exit and recur after later Codex workspace/thread activity.
    • During one affected checkpoint attempt, the actual test body/pytest process had not started, so the task payload itself was not the process creating the memory pressure.
    • Delayed pushing/sharing of Git commits does not explain four identical concurrent scans.

    Expected behavior

    Codex should single-flight/debounce untracked-file discovery per workspace, cancel superseded scans, and impose bounded memory/time/concurrency limits. A large working tree may make one scan expensive, but it should not result in four identical unbounded scans that can freeze Windows.

    It would also help to provide either:

    1. an app setting to disable or defer automatic untracked-file scanning,
    2. incremental/cached discovery instead of full rescans on ordinary thread activity, and
    3. a visible warning/circuit breaker before duplicate Git children exhaust system memory.

    No repository contents, session transcripts, or unredacted local paths are attached publicly. Sanitized process snapshots or Windows event details can be provided if maintainers request them.

  10. enord15 commented on Aug 17, 2026

    @enord15

    I can reproduce what appears to be the same NtFC/nonpaged-pool growth on a current Codex/ChatGPT Windows desktop build.

    Environment:

    • Windows 11 Pro 24H2, OS build 26100.9168
    • ChatGPT powered by Codex & OWL, version 26.810.52044 (released Aug 14, 2026; app reports up to date)
    • 64 GB RAM

    Observed behavior:

    • After longer Codex repository sessions, Task Manager showed 23.6 GB non-paged pool.
    • PoolMon showed NtFC Nonp at 22,408,235,776 bytes (~20.9 GiB), with a Diff/outstanding allocation count of 68,789,554 and ~325 bytes per allocation.
    • Reboot clears the accumulated kernel memory.
    • This has reproduced across multiple sessions/reboots.
    • Closing Codex stops the continuing growth, but the already accumulated kernel pool does not reliably return until reboot.

    Defender test:

    • I temporarily excluded only the active Luna repository from Microsoft Defender real-time scanning.
    • The problem still reproduced and non-paged pool ultimately reached 23.6 GB, so that narrow repository exclusion did not resolve it.
    • The exclusion has since been removed.

    Controlled reproduction with the app's built-in Performance Trace:

    1. Rebooted Windows.
    2. Started a ChatGPT/Codex Performance Trace.
    3. Baseline non-paged pool: 816 MB.
    4. Asked Codex to perform a read-only recursive audit of the repository (source, config, scripts, tests, checkpoints, documentation, agent files), deliberately creating a filesystem-heavy workload without modifying files.
    5. Non-paged pool rose 816 MB -> 1.0 GB -> 1.4 GB during the recorded workload.
    6. Stopped and uploaded the trace.

    Uploaded performance trace / Feedback ID (as displayed by the app):
    019f06df-f34a-7c02-a79b-24008e4f45f8

    This looks closely aligned with the original report: sustained Codex repository/file activity correlates with rapid growth of ntfs.sys pool tag NtFC, while ordinary user-mode process memory does not account for the retained RAM. The issue remains present on version 26.810.52044.

  11. ovws commented on Aug 25, 2026

    @ovws

    @codex Let's resolve this issue.

  12. enord15 commented on Aug 30, 2026

    @enord15

    Additional live reproduction — 2026-08-30

    Caught another affected session while total system memory usage was roughly 40 GB.

    • Windows system nonpaged pool was already 7.56–7.58 GB while Codex was running.
    • At the same time, four git.exe processes were visible concurrently under the Codex/Git process chain, with command lines including Codex-style Git operations such as ls-files and status.
    • Codex itself was using approximately 1.58 GB working set.
    • The four Git working sets were comparatively small (approximately 7 MB, 94 MB, 7 MB, and 40 MB), so their user-mode working sets do not account for the multi-GB nonpaged pool.
    • A 30-second sample of \Memory\Pool Nonpaged Bytes remained at the already-elevated 7.57–7.58 GB level; I did not observe rapid additional growth during that short window.
    • I then completely exited Codex. After exit, system nonpaged pool was still 7.59 GB, i.e. the accumulated kernel pool was not released when Codex closed.

    This is consistent with my earlier reproduction in this thread: Codex/Git filesystem activity is present during the affected state, while the large memory consumption resides in Windows kernel nonpaged pool rather than Codex/git process working sets. Screenshots of the PowerShell captures are available if useful.

  13. ChaoticLuna commented on Sep 8, 2026

    @ChaoticLuna

    Deep-dive root cause: bindflt.sys leaks the reparse buffer on the failed-query path — the packaged-app context is the trigger switch

    We independently root-caused this on Windows 11 26200.9168, Codex package OpenAI.Codex_26.901.6511.0_x64__2p2nqsd0c76g0 (same build as @idkwhatname9180's report). Summary: the NtFC growth is a memory-release omission in bindflt.sys (Microsoft's bind filter driver, used for MSIX packaged-app file-system redirection). Codex's Git scanning is the amplifier, not the root cause.

    The kernel defect (instruction-level attribution)

    • Leaked allocation stack (live-consumed ETW, PDB-matched symbols), identical for all 100 residual allocations in a 100-call test: bindflt!BfPreCreate → bindflt!BfpDoesFileExistWithCrossVolumeECP → FLTMGR!FltCreateFileEx2 → Ntfs!NtfsFsdCreate → NtfsCommonCreate → NtfsGetReparsePointValue (allocates with tag NtFC).
    • In bindflt.sys 10.0.26100.8972, BfpDoesFileExistWithCrossVolumeECP ORs IO_STOP_ON_SYMLINK (0x8) into the Flags of its first FltCreateFileEx2 call (call at RVA 0x246b). When the call returns STATUS_STOPPED_ON_SYMLINK (0x8000002D, compared at RVA 0x24a3), the code zeroes the status and exits — without ever reading or freeing the REPARSE_DATA_BUFFER returned via IO_STATUS_BLOCK.Information. Microsoft's IoCreateFileEx documentation explicitly states the caller must free this buffer.
    • Per-call accounting matches exactly: 100 failed queries → 300 tagged allocations, 200 frees, net 100 residual × 320 bytes, 1:1 with the system-wide pool counter delta. The other two allocation paths in the same query (BfCreateFile, BfpHandleNetworkQueryOpen) free correctly.

    Minimal repro (no Git required)

    GetFileAttributesExW on a nonexistent name through a directory junction (e.g. pnpm's AppData\Local\pnpm\store\v11\projects\<hash> junction) leaks exactly one ~320-byte NtFC allocation per call — but only when the caller runs in Codex's packaged-app context:

    Launch context 20 failed queries via junction
    Codex-spawned shell +20 objects, +6,400 bytes
    Injected into package via Invoke-CommandInDesktopPackage +20 objects, +6,400 bytes
    Explorer / plain terminal 0
    Same query on the junction's real target path 0
    Existing file via the junction 0

    Notably, the trigger does not require formal package identity: the real codex.exe token has no package identity (GetPackageFullNameFromToken → 15700) and is not an AppContainer, yet its children leak; a normally-spawned child of a package-context process (no package identity, still in the job) does not leak. The remaining candidate is the package's silo / job configuration — still open.

    The amplifier

    Codex Desktop periodically spawns git status / git ls-files --others --exclude-standard for session repos. Git probes .git, .git\HEAD, .gitignore at every directory level — all failing lookups. With a stray %USERPROFILE%\.git, the repo root becomes the whole profile, so scans traverse the pnpm junction and leak at ~11–22 MiB/min. An A/B test with the profile .git\HEAD renamed: leak flat for 35+ min; HEAD restored → +36,216 objects / +11.05 MiB per 75 s within 75 s; HEAD renamed again → flat.

    Mitigations that work: remove the stray %USERPROFILE%\.git (kills the amplifier); note already-leaked pool memory is only reclaimed by reboot. The actual fix belongs to Microsoft (bindflt.sys), but Codex could stop driving the path: scope scans to real workspace roots, debounce, and avoid probing under junctions.

    Happy to share the probe scripts, the pool-tag reader (no poolmon needed — uses NtQuerySystemInformation(SystemPoolTagInformation)), ETW capture notes, and the disassembly offsets.

  14. ovws commented on Sep 8, 2026

    @ovws

    We Need Help!!!!

  15. enord15 commented on Sep 12, 2026

    @enord15

    Follow-up after disabling the unused home-level Git repository

    I can now report a longer-duration A/B result from the same affected machine.

    I renamed the unused %USERPROFILE%\.git directory so that my entire Windows user profile was no longer being treated as a Git repository, then rebooted.

    • Immediately after reboot, system nonpaged pool was 0.47 GB.
    • After roughly two days of normal computer use, with Codex open/used during that period, system nonpaged pool is 0.93 GB.
    • Total system memory usage is currently around 16 GB.
    • Before disabling the home-level .git, an affected session reached 7.59 GB nonpaged pool and roughly 40 GB total system memory, with multiple concurrent Codex/Git processes observed.

    This is a dramatic improvement on this machine and independently supports the home-level Git repository as a major amplifier/trigger for the runaway behavior. I have not seen the previous rapid multi-gigabyte nonpaged-pool growth since disabling that unused %USERPROFILE%\.git repository.

    This does not establish that the underlying Windows kernel defect is fixed; it is a mitigation result. But for this system, preventing Codex from treating the entire user profile as a repository appears to have eliminated the practical runaway-memory failure so far.

  16. luohui0801-bit commented on Sep 18, 2026

    @luohui0801-bit

    Additional sanitized Windows reproduction:

    • Codex Desktop MSIX: 26.915.4065.0
    • Windows 11 24H2: build 26100.9457
    • After a full reboot, with third-party Tencent/QQ filesystem filters removed, Codex was launched with --disable-gpu.
    • PoolMon (-p -b -r) showed NtFC rising from 491,288,000 bytes to 708,289,232 bytes in 20 seconds. Total nonpaged Pool N rose from 873,556K to 1,090,308K.
    • The issue therefore persists after reboot, with GPU disabled and without those third-party filters.
    • No claim is made about the exact child-process mechanism; short-lived git.exe processes were not captured in unprivileged local sampling.
  17. ovws commented on Sep 28, 2026

    @ovws

    @tibo-openai help me.

  18. HiRenan commented on Oct 13, 2026

    @HiRenan

    Another amplifier on 26.1007.2314.0: bundled-plugin install loop through a directory junction (no home-level .git, no git spawns)

    Sanitized reproduction from 2026-10-13. The kernel side matches @ChaoticLuna's bindflt.sys analysis; the amplifier is different from the Git scanning described above.

    Environment

    • Codex Desktop MSIX OpenAI.Codex_26.1007.2314.0_x64__2p2nqsd0c76g0; the app-server reports 0.162.0-alpha.17.2.
    • Windows 11 Pro 25H2, build 26200.9457. ntfs.sys is 10.0.26100.8875 and bindflt.sys is 10.0.26100.9278. RAM is 32 GB.
    • There is no %USERPROFILE%\.git, and the desktop log for the affected session contains no git ls-files or git status spawns.

    What the app was doing

    Every app session logged the same loop:

    warning [AppServerConnection] plugin_install_failed errorCategory=other errorMessage="failed to install plugin: failed to create temporary plugin cache directory: too many temporary files exist at path \"%APPDATA%\\orca\\codex-runtime-home\\home\\plugins\\cache\\openai-primary-runtime\"" ... marketplaceKind=local marketplacePath=%USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\plugins\openai-primary-runtime\.agents\plugins\marketplace.json pluginName=documents
    
    • plugin_install_failed per app session: 329 in 33 min, 278 in 29 min, 550 in 57 min and 151 in 16 min.
    • %APPDATA%\orca\codex-runtime-home\home is a Codex home managed by another desktop app, Orca. In it, plugins is a directory junction to %USERPROFILE%\.codex\plugins.
    • The cache folder holds only 3 entries (documents, presentations and spreadsheets). "Too many temporary files" therefore looks like an exhausted create-retry loop, not an actual pile of files.
    • The user-level CODEX_HOME points elsewhere, to %USERPROFILE%\.codex-system. I could not determine why the app-server resolved its plugin cache under the Orca home.

    Measurements (unprivileged NtQuerySystemInformation(SystemPoolTagInformation) plus Win32_Process I/O counters)

    • About 12 minutes after the app started, NtFC held 5,695.7 MiB of nonpaged pool in 37,327,599 outstanding allocations, growing +85.4 MiB per 10 s. The total Pool Nonpaged Bytes went 5.68 → 6.32 → 7.28 → 8.30 GB over about 5 minutes, roughly 0.5 GB/min.
    • Over 5 s, codex.exe app-server did 595,184 "other" I/O operations (~119k/s) and the main ChatGPT.exe did 333,005 (~66k/s). Handle counts stayed low (446 and 2,038), so this is not a user-mode handle leak.
    • After taskkill /T /F on the ChatGPT.exe tree, NtFC growth stopped immediately (+0.0 MiB over 15 s and again over 10 s). It stayed at 7,423.6 MiB / 48,651,430 allocations (~160 B each) and was not reclaimed, which is consistent with the reports above.
    • Impact: two hard freezes on the same morning, each needing a power-button shutdown. Neither produced a bugcheck (Kernel-Power 41 BugcheckCode=0) or a Resource-Exhaustion-Detector 2004 event.

    Mitigation so far: I disabled the app's start-at-login and kept it closed. I did not test removing the junction.

  19. bozzisss commented on Oct 14, 2026

    @bozzisss

    I am experiencing a very similar issue with Codex Desktop on Windows.

    On October 14, 2026, I observed the following behavior:

    • With Codex closed, system nonpaged pool memory remains around 1 GB.
    • After opening Codex Desktop, nonpaged pool memory rapidly increases, reaching approximately 5.8 GB.
    • PoolMon shows NtFC (Nonp) as the dominant growing tag, with approximately 3,581,254,832 bytes allocated and 31,975,487 outstanding allocations in one capture.
    • After exiting Codex, the memory growth stops, but the previously accumulated memory is not immediately released.
    • Rebooting Windows restores normal memory usage.
    • Both WSL2 Ubuntu and docker-desktop were stopped during testing.
    • %USERPROFILE%\.git does not exist, and Git does not recognize my user profile directory as a repository.
    • Reinstalling Codex Desktop did not resolve the issue.

    I have not confirmed whether Codex is repeatedly spawning git.exe.

    I previously attempted relocating some Codex data from C: to D:, so filesystem redirection or directory junctions may also be relevant.

    I can provide PoolMon screenshots and additional diagnostic information if needed.

    Is there a confirmed fix or safe workaround for this issue?

  20. EighteenWu commented on Oct 15, 2026

    @EighteenWu

    Additional sanitized WPR data point from a Codex Desktop installation:

    • Package: OpenAI.Codex 26.1007.9446.0; Windows 11 build 26200.
    • A WPR Pool/NtFC capture ran for 9.79 seconds with 0 lost buffers/events.
    • The trace attributed 32,943.4 KB of outstanding NtFC allocations; 32,878.7 KB (~99.8%) mapped to a stack beginning chrome.exe -> CreateFileW -> bindflt.sys!BfpDoesFileExistWithCrossVolumeECP -> ntfs.sys!NtfsGetReparsePointValue.
    • chrome.exe was the embedded Chromium process running under the packaged Codex desktop app, not a standalone Chrome session.
    • This short capture confirms the same stack family but does not establish a sustained growth rate or the exact file path/feature that triggers it. The ETL did not include file-path detail.
    • The local %APPDATA%\Codex\web\Codex\GrShaderCache and Default\Cache directories are modest in size (~11.7 MB and ~6.8 MB); I do not yet have ProcMon evidence of the extreme cache-path CreateFile loop described elsewhere.

    The raw ETL is available privately if maintainers need it; I have not attached it publicly because it contains machine-specific diagnostic metadata.

  21. KarlAvec1K commented on Oct 17, 2026

    @KarlAvec1K

    I reproduced the same NtFC / ntfs.sys system-pool growth on Codex Desktop 26.1013.3656.0:

    • Normal launch, 10 minutes: nonpaged pool +6.232 GiB; NtFC +5.990 GiB.
    • After fully exiting Codex, about 10 minutes closed: NtFC stayed flat.
    • Relaunch with --disable-gpu-shader-disk-cache, 10 minutes: nonpaged pool +0.019 GiB; NtFC stayed flat within ~1 MiB sampling resolution.

    I did not capture Git process activity or ETW stacks in this test, so I cannot confirm that my reproduction shares the repeated git ls-files trigger described in this issue. The phases ran in one session without a reboot, and this single 10-minute comparison does not identify the component responsible or prove a permanent fix.

    For users trying the workaround, fully exit Codex before relaunching with --disable-gpu-shader-disk-cache.

  22. chenziyang110 commented on Oct 28, 2026

    @chenziyang110

    Additional measured case: profile-root git status on Windows Desktop 26.1021.3705.0

    An additional case from 2026-10-28 supports the profile-root repository trigger discussed here, with a different Git command on a newer desktop package. A same-build intervention stopped the measured pool growth without closing Codex.

    Environment

    • Windows 11 Pro 25H2, build 26200.9711, x64.
    • Codex Desktop MSIX package OpenAI.Codex_26.1021.3705.0_x64, identified from the running process path. Subscription: Pro.
    • Git for Windows 2.52.0.windows.1.
    • 64 GB installed RAM, approximately 61.56 GiB visible to Windows.

    Confirmed workload and scope

    The observed ancestry was ChatGPT.exe (Codex Desktop) -> Git launcher -> Git executable. Its command was:

    git.exe -c safe.bareRepository=explicit -c core.hooksPath=NUL -c core.fsmonitor= status --no-renames --ignored=matching --untracked-files=all --porcelain=v1 -z --
    

    The current directories of both Git processes were read from their process parameters as %USERPROFILE%; git rev-parse --show-toplevel independently resolved to the same root. A sampled Git process had approximately 40,638 Other I/O operations/second, measured using Win32_Process deltas. This is not a direct count of file opens.

    A pre-existing profile-level .git had an unborn HEAD, no indexed paths, and no refs returned by git for-each-ref. It contained old object data; its creator is unknown. The diagnostic chat's directory was under %USERPROFILE%\Documents\Codex without an independent repository. The specific desktop view scheduling the operation was not identified; other chats/projects were open.

    In-session intervention

    System nonpaged pool had reached approximately 43 GiB, NtFC approximately 36.9 GiB, and available RAM approximately 3.9 GiB.

    We preserved the original profile repository's local .git/info/exclude and appended:

    /*/
    !/.specify/
    !/features/

    These rules prune root-level untracked directories except the two named directories. Only the old background status processes with the matching command and profile-root working directory were stopped so later operations would read the new rules. Codex Desktop and two existing QEMU processes remained running.

    Measurement Baseline After intervention, same build/session
    Observation interval 30.1 s 60.3 s
    NtFC nonpaged-byte change +42.67 MiB 0 bytes
    Observed growth rate approximately 84.95 MiB/min 0 in the observation window
    NtFC bytes 36.7485 -> 36.7902 GiB 39,615,113,456 bytes, unchanged

    The identical Git status arguments then completed in approximately 0.11 s, exit code 0, with no stderr and 0-byte NtFC delta. Later samples remained at the same byte count for more than four minutes after the intervention. Existing accumulated pool was retained.

    After Windows restarted, nonpaged pool was approximately 1.54 GiB and NtFC was 32 bytes, unchanged over another 60.3-second observation. The desktop package changed to 26.1023.6123.0 across the restart, so the restart result demonstrates recovery, not an isolated version-fix comparison. The successful scan-pruning intervention happened before that restart on the affected build.

    After user confirmation, the profile-level metadata was backed up and moved away. The profile-root rev-parse probe then exited 128; independent project repositories were preserved.

    Interpretation and limits

    • This is a single-machine baseline/intervention comparison. No clean-room minimal reproducer or reversal/rechallenge was performed; original scan timing/frequency was not recorded.
    • Exact-case NtFC sampling used NtQuerySystemInformation(SystemPoolTagInformation) from a 64-bit process: 40-byte entries, NonPagedUsed at offset 32. Memory counters independently confirmed the pool total. Units are binary GiB/MiB.
    • No pool allocation stacks were captured, so the allocating function, leaking driver path, and precise reparse point remain unproven. Checked Codex AppData directories and descendants had no reparse points; others elsewhere in the profile were not excluded.
    • The measurements support background profile enumeration as a workload trigger on this machine. They do not establish that Codex created the profile-level repository, directly implements the kernel leak, uploaded profile data, or bypassed access controls. Ancestor repository discovery itself is normal Git behavior.

    Requested product safeguards

    Please make unexpectedly broad resolved roots visible before expensive automatic enumeration, with explicit confirmation or bounded defaults for profile/drive roots. Background untracked/ignored scans should have cancellation, deduplication, time/result budgets and backoff, plus a supported per-project option to narrow or disable them. Please also correlate this workload with the kernel investigation in #56160, without assuming that report's precise driver explanation is proven on this machine.

    Prepared with Codex assistance from contemporaneous local measurements. Usernames, machine names, project names, PIDs, raw profile contents and Git object data are omitted.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions