Skip to content

WSL 2.7.10 / kernel 6.18.33.2: Codex CLI triggers unrecoverable VMA lock stall; ps hangs and threads enter D state #41113

Open

Description

Windows Version

Microsoft Windows [Version 10.0.22631.6199]

WSL Version

2.7.10.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.18.33.2-2

Distro Version

Ubuntu 22.04

Other Software

Codex CLI 0.144.5

Codex is installed as a native Linux standalone binary:

/home/acrobot/.codex/packages/standalone/releases/0.144.5-x86_64-unknown-linux-musl/bin/codex

The Codex executable, ~/.codex state directory and project are all on WSL’s native ext4 filesystem. Nothing involved in the reproduction is stored under /mnt/c.

The project was located at:

/home/acrobot/tripptic

Repro Steps

  1. Start Codex CLI from a project stored under /home on the WSL ext4 filesystem.
  2. Use Codex normally in an interactive session.
  3. Eventually, the Codex terminal interface freezes completely.
  4. Open another WSL terminal.
  5. Run ps aux. It hangs while enumerating processes around the Codex process.
  6. Running ps under strace also hangs inside process inspection.
  7. Ctrl+C, Ctrl+Q and attempts to terminate Codex do not recover the process.
  8. Use SysRq w and t to capture blocked-task and complete task dumps.

This has occurred multiple times, although I do not yet have a deterministic minimum-duration reproduction.

Expected Behavior

Codex should remain responsive. If Codex itself deadlocks, it should remain possible to inspect and terminate it without affecting ps or other process-inspection tools.

Actual Behavior

Codex freezes, process inspection involving Codex hangs, and multiple Codex threads enter uninterruptible D state.

The SysRq dump shows a sqlx-sqlite-worker thread blocked during munmap():

task:sqlx-sqlite-wor state:D
__vma_start_write
__split_vma
vms_gather_munmap_vmas
do_vmi_align_munmap
do_vmi_munmap
__vm_munmap
__x64_sys_munmap

Another Codex tokio-rt-worker is blocked acquiring the virtual-memory write semaphore:

task:tokio-rt-worker state:D
rwsem_down_write_slowpath
down_write_killable
__vm_munmap
__x64_sys_munmap

After attempting to terminate Codex, other Codex threads become blocked while exiting:

rwsem_down_read_slowpath
down_read
do_exit
do_group_exit
get_signal

The affected threads cannot be terminated with signals because they remain in D state. Restarting the affected WSL distribution is required.

At the time of capture, PSI reported no current memory or I/O pressure:

memory some avg10=0.00 avg60=0.00 avg300=0.00
memory full avg10=0.00 avg60=0.00 avg300=0.00
io some avg10=0.00 avg60=0.00 avg300=0.00
io full avg10=0.00 avg60=0.00 avg300=0.00

The issue is not caused by DrvFS or a project under /mnt/c; the executable, project and Codex databases are all on ext4.

I have not yet reproduced the VMA stall using a program other than Codex. Codex appears to be the reproducible userspace trigger, but the unrecoverable D state and process-wide virtual-memory locking stall appear to occur in the WSL kernel.

Diagnostic Logs

WslLogs-2026-07-18_19-40-59.tar.gz

Activity

  1. github-actions commented on Jul 18, 2026

    @github-actions
    Contributor
    Diagnostic information
    .wslconfig found
    Detected appx version: 2.7.10.0
    
  2. added
    kernel
    needs-investigation
    on Jul 23, 2026
  3. Acrobot commented on Jul 24, 2026

    @Acrobot
    Author

    As a note, this seems to be happening less now after I updated my BIOS. I think my i9-13900 might be unfortunately faulty (Intel acknowledged that these CPUs have a flaw in them). So please keep this in mind when researching the issue.

  4. ClaudioIacovelli commented on Aug 2, 2026

    @ClaudioIacovelli

    Independent reproducer, different userspace program, identical backtrace.

    Triggered by Julia 1.11 (julia -t 4) running ITensors.jl DMRG with threaded block-sparse contraction. Multi-GB working set, frequent allocation/free of large arrays, so the GC issues many large munmap() calls. No Codex, no Rust, no sqlite. Everything on ext4 inside the VM.

    Environment:

    • WSL 2.7.11.0
    • Kernel 6.18.33.2-microsoft-standard-WSL2
    • Windows 11 25H2, build 26200.8875 (vs 22631 in the original report)
    • Ubuntu, CPU: Intel i9-14900KF, .wslconfig processors=20, memory=24GB
    • WSLg disabled (guiApplications=false)

    Backtrace via hung-task detector (kernel.hung_task_timeout_secs=120):

    INFO: task julia:675 blocked for more than 120 seconds.
          Not tainted 6.18.33.2-microsoft-standard-WSL2 #1
    task:julia    state:D  pid:675  tgid:675  ppid:657
     __schedule+0x546/0xc20
     schedule+0x2b/0xf0
     __vma_start_write+0x66/0x110
     __split_vma+0x1ba/0x2f0
     vms_gather_munmap_vmas+0xd0/0x290
     do_vmi_align_munmap+0x126/0x1c0
     do_vmi_munmap+0xd7/0x170
     __vm_munmap+0xc5/0x180
     __x64_sys_munmap+0x1f/0x30
    RSP: 002b:00007ffcc0b35aa8 ORIG_RAX: 000000000000000b
    RSI: 00000000059a1000 RDI: 000076dc21cba000
    

    ORIG_RAX=0xb (munmap), RSI=0x059a1000 — a 94 MB region.

    Thread states of the stuck process:

    456 Dl+  vma_start_write     <- main thread
    461 Sl+  io_sq_thread
    462 Sl+  do_sigtimedwait
    463 Sl+  futex_do_wait       <- 18 further threads, all futex_do_wait
    

    Matches #41113 exactly: PSI zero (15 GiB of 19 GiB free, swap 0 B, /proc/pressure/memory all 0.00, io avg60=0.01), no OOM, no ext4 errors,
    unkillable by SIGKILL, only wsl --shutdown recovers. Reads of /proc//cmdline, syscall, wchan and maps also block permanently (mmap_lock); /proc//stat stays readable.

    Reproduced twice in one session (PIDs 456 and 675), 30 min to several hours in, always during GC. Not yet reproduced single-threaded, which is consistent with the per-VMA lock needing concurrent readers to contend.

    Also worth noting: I hit the same class of stall on kernel 5.15.167.4 /WSL 2.4.13.0, where the signature was rwsem_ rather than vma_start_write

  5. jpopillion commented on Aug 19, 2026

    @jpopillion

    I'm running into the exact same issue which started about 1 1/2 months ago. Cannot complete a build without a hang. Had Dicker support look at diagnostics and validated the same problem as stated here with WSL. One point of interest. I believe it started after windows update which updated my bios. I have the same scripts running perfectly on two other machines both windows but those did not have a bios update. If I reinstall the bios I am able to completely a build but the problem comes back.

    Also, ran the same scripts under Hyper-V. It works without stalling or hanging but Hyper-V does not support NVIDIA Cuda gpu processing so I'm back to WSL2.

  6. dark2momo commented on Aug 24, 2026

    @dark2momo

    Cross-version observation after switching the active WSL kernel:

    After repeated unrecoverable stalls on the bundled 6.18.33.2 kernel, I explicitly configured WSL through .wslconfig to boot a custom Microsoft WSL kernel:

    • switch date: 2026-08-19
    • Windows 11: 10.0.22631.4602
    • WSL package: 2.7.12.0
    • active kernel verified by uname -r: 6.6.87.2-microsoft-standard-WSL2
    • Ubuntu 22.04
    • workload: Herdr 0.8.0 managing multiple long-running Codex panes
    • installed Herdr binary SHA-256: c35e3141ea3ab9c43ceada29d18d939f0da84cb11a68c6e1be62a4bc2ad199f0

    wsl --version continued to display the 6.18 kernel bundled with the WSL package, but that was not the running kernel; uname -r and the .wslconfig kernel=... override both confirmed 6.6.87.2. No BIOS or hardware changes were made during this observation period.

    On 2026-08-20, the failure recurred once on the active 6.6.87.2 kernel. Before terminating the VM, a stat-only /proc scan showed Herdr PID 1880 with 82 threads, 7 in uninterruptible D state:

    states: D=7, S=75
    1880  D  do_brk_flags
    1881  D  vm_mmap_pgoff
    89369 D  vm_mmap_pgoff
    89372 D  vm_mmap_pgoff
    89376 D  vm_mmap_pgoff
    89382 D  vm_mmap_pgoff
    89385 D  vm_mmap_pgoff
    

    The other 75 threads were sleeping, primarily in futex, wait, and poll paths. A Herdr client request did not return within 10 seconds. The D-state threads could not be recovered with signals, so I killed the exact HCS WSL VM. After restart, the same 6.6 kernel and same Herdr binary restored all seven workspaces, and a stat-only scan showed no D-state tasks.

    As of 2026-08-24, with the same 6.6 kernel, BIOS, hardware, and workload, I have not observed another recurrence.

    The single 6.6 recurrence means that switching from 6.18 to 6.6 did not completely eliminate the problem. The subsequent stable period is still too short to claim that 6.6 fixes or reduces the failure rate. I also do not have a full kernel stack for the 6.6 occurrence, and its top-level wchan symbols differ from the __vma_start_write / munmap capture in this issue. This should therefore be treated as a factual cross-version observation, not proof of an identical root cause. If it recurs, I will try to capture SysRq blocked-task stacks before recovery.

    Herdr-side tracking and userspace mitigation scope:

    herdrdev/herdr#2179 (comment)

    That PR avoids remote-memory-backed procfs reads when process discovery encounters an already-wedged task. It is linked here as the concrete userspace workload and defensive mitigation; it is not claimed to fix the underlying WSL D-state failure.

  7. Cn8001 commented on Aug 25, 2026

    @Cn8001

    I'm seeing what looks like the same issue on WSL2 with:

    Linux 6.18.33.2-microsoft-standard-WSL2

    CPU: Intel Core i9-14900KS

    The problem appeared while running a 3-broker Kafka 4.3.1 cluster in Docker. One Kafka container became impossible to stop/remove. Docker reported:

    could not kill container: tried to kill container, but did not receive an exit event
    

    Restarting dockerd and containerd did not recover it. Even:

    docker kill
    docker rm -f
    ctr -n moby tasks kill --signal SIGKILL
    kill -9

    had no effect.

    Docker continued reporting the container as running, with the JVM process in:

    State: D (disk sleep)
    

    Most JVM/Kafka threads were stuck in:

    do_exit
    

    For example:

    Name:   ReplicaFetcherT
    State:  D (disk sleep)
    do_exit
    
    Name:   G1 Conc#1
    State:  D (disk sleep)
    do_exit
    

    Its kernel stack is:

    [<0>] __vma_start_write+0x66/0x110
    [<0>] vma_expand+0x5b/0x1d0
    [<0>] vma_merge_new_range+0x79/0x160
    [<0>] __mmap_region+0x423/0xd10
    [<0>] mmap_region+0x63/0xb0
    [<0>] do_mmap+0x47e/0x670
    [<0>] vm_mmap_pgoff+0x117/0x200
    [<0>] ksys_mmap_pgoff+0x4d/0x1f0
    [<0>] __x64_sys_mmap+0x37/0x50
    [<0>] x64_sys_call+0x1d59/0x20f0
    [<0>] do_syscall_64+0x73/0x990
    [<0>] entry_SYSCALL_64_after_hwframe+0x76/0x7e
    

    Kernel:

    Linux 6.18.33.2-microsoft-standard-WSL2
    #1 SMP PREEMPT_DYNAMIC Thu Jun 18 21:54:43 UTC 2026
    x86_64 GNU/Linux
    

    The behavior looks like the JVM is already exiting, but one thread becomes stuck in the VMA/mmap path and prevents the process from completing teardown. Because the task remains in uninterruptible D state, neither Docker/containerd nor SIGKILL can actually clean it up.

  8. Nijat816 commented on Aug 26, 2026

    @Nijat816

    Another reproduction — with what may be a fast, reliable reproducer (15 s – 2 min to deadlock), plus the CPU/microcode data requested in #41191.

    Environment

    • MSI Raider 18 HX A14VGG, Intel i9-14900HX (Raptor Lake-HX, CPUID 06-b7-01), microcode 0x11F, built 2023-09-06 — the OEM never shipped newer microcode for this model, and client Windows (mcupdate_GenuineIntel.dll) carries no 06-b7 entries at all, so the 9 later official revisions (0x122→0x137, incl. the 0x12B/0x12F stability updates) are all absent on this machine. cpumcupdate event 40 "Failed to update microcode on one or more CPUs" logs on every boot.
    • Windows 11 25H2 (26200.9168), WSL 2.7.10, kernel 6.18.33.2-microsoft-standard-WSL2
    • Reproduced both before and after upgrading Windows 21H2 → 25H2 (the upgrade changed nothing)
    • Also reproduced on kernel 6.6.87.2 (pinned via .wslconfig) during July–August, with different wchans (below)

    Signature (identical to OP): process enters uninterruptible D-state at wchan=__vma_start_write, SIGKILL has no effect; anything that touches its /proc/<pid>/cmdline (ps / pgrep / VS Code Server process enumeration) chains into D-state at __access_remote_vm; load climbs while all PSI stay zero. Only wsl --shutdown recovers.

    Reproducer — h5py + LZF compressed write/read loop, ~41 MB per round:

    import os, numpy as np, h5py
    NL, H, W = 40, 512, 512
    base = np.random.default_rng(0).random((NL, H, W), dtype=np.float32)
    path = "probe_work.h5"
    while True:
        if os.path.exists(path): os.remove(path)
        with h5py.File(path, "w") as f:
            f.create_dataset("d", data=base, compression="lzf", chunks=(1, H, W))
        with h5py.File(path, "r") as f:
            _ = f["d"][:]

    On this machine this deadlocks within 15 s – 2 min (5/5 attempts across two days, including 15 s after a fresh boot). Ordinary workloads trigger it too: conda's shell hook at terminal startup (deadlocked 108 s after boot), a plain curl download (stuck 60 min in __vma_start_write), python scripts.

    Two observations that may matter

    1. When deadlocked, the 32-thread reproducer has exactly one thread in __vma_start_write and the rest in futex_do_wait — no thread of the process holds the VMA read lock, and no external process was accessing its mm at the time. It looks like vm_refcnt never reaches tgt_refcnt although no reader is present.
    2. On 6.6.87.2 (rwsem-based per-VMA implementation) we logged the same D-state family for weeks at roughly 1–2 incidents/week, wchans: dup_mmap (VS Code node during fork), __split_vma (netCDF subsetting), vma_expand (tectonic/LaTeX, python), do_vmi_align_munmap. So on this platform the problem predates the refcount rewrite — 6.18 is just much easier to trigger.

    We also hit #41191's fs/namei.c:844 (try_to_unlazy) panic 4× on 6.18.33.2 (plus one error_entry panic, Comm=python3.12) and never on 6.6 — consistent with observations there. Additionally, a userspace probe on this machine intermittently observes non-deterministic zlib compression output (same input, three compress calls, byte-different results in bursts) on both 6.6.87.2 and 6.18.33.2, before and after the Windows upgrade — consistent with silent memory-state corruption rather than a VFS- or mm-specific bug.

    Happy to run a KASAN build of linux-msft-wsl-6.18.35.2 with this reproducer if useful (cc Mitchell Levy (@chessturo)).

  9. dark2momo commented on Sep 19, 2026

    @dark2momo

    Follow-up to my August observation: the subsequent stable period did not persist. Failures have continued on the pinned 6.6.87.2 kernel. I now have additional kernel-log evidence, but cannot establish that all of the following symptoms share the original issue's root cause.

    Environment (checked September 19)

    • Windows 11 Pro 23H2, build 22631.4602
    • WSL package now 2.7.14.0 (was 2.7.13.0 at our September 9 check; upgrade timing not established)
    • Actual running kernel, verified with uname -r: 6.6.87.2-microsoft-standard-WSL2, selected through .wslconfig kernel=...
    • wsl --version reports bundled kernel 6.18.33.2-2, which is not the active kernel
    • Ubuntu 22.04; Intel Core i9-14900KF
    • Mixed long-running terminal/agent, Node/Python development, and local generation workloads; no controlled isolation of Herdr or GPU activity yet
    • Mirrored networking, hostAddressLoopback=true, vmIdleTimeout=-1, instanceIdleTimeout=-1

    The following observations do not establish a BIOS or hardware cause. Hardware stability and BIOS/microcode state remain unverified in this investigation.

    Observations (timestamps UTC+08:00)

    1. September 4 and 6: contemporaneous recovery notes recorded Herdr queries timing out and D-state waits including do_brk_flags, lock_mm_and_find_vma, vm_mmap_pgoff, and __access_remote_vm (also affecting Node/ps). These are recorded wchan observations, not full lock-owner traces.

    2. September 11, 18:52–18:53: a preserved kernel journal excerpt contains:

      BUG: Bad page map in process python
      BUG: Bad rss-counter state ... type:MM_ANONPAGES val:1
      BUG: using smp_processor_id() in preemptible [00000000] code: sha256sum/...
      BUG: using __this_cpu_read() in preemptible [00000000] code: sha256sum/...
      Voluntary context switch within RCU read-side critical section!
      WARNING: ... at kernel/rcu/tree_plugin.h:320 rcu_note_context_switch+0x4e7/0x5f0
      

      These lines are abridged to omit addresses/identifiers. The warnings identify kernel 6.6.87.2. The bad-page-map stack includes print_bad_pte -> vm_normal_page -> unmap_page_range -> unmap_vmas -> exit_mmap -> __mmput -> do_exit. The RCU-warning stack includes __schedule -> schedule -> io_schedule -> folio_wait_bit_common -> filemap_get_pages -> filemap_read -> generic_file_read_iter -> ext4_file_read_iter -> vfs_read. Later taint flags include B and W.

    3. September 15 and 19: saved kernel tails again show preemption warnings in sha256sum, herdr, and dpkg-query contexts, including __this_cpu_add/read. The task name is execution context, not proof that that application caused the problem.

    4. September 19 at 20:55: WSL process startup failed before the intended guest probes could execute:

      getpwnam(<user>) failed 5
      getpwuid(<uid>) failed 5
      fopen(/etc/default/locale) failed 5
      getpwuid(0) failed 5
      

      This was broader than a Herdr client failure. Restart restored basic guest reads and Windows mount access. Separately, on September 7, only /mnt/c had returned EIO while the Linux root remained readable. I am not assuming these two I/O incidents are the same defect.

    5. September 19 at 22:37: Herdr again reported Resource temporarily unavailable (os error 11). wsl --shutdown did not finish within 20 seconds, and HCS still listed the VM as Running. We terminated that specific VM to restore availability. Other recovery attempts did shut down normally. Recovery times are not necessarily failure-onset times.

    Scope and evidence limitations

    • An earlier Herdr-only graceful exit coincided with a host application update while WSL remained accessible. Herdr was moved to systemd on September 9; that distinct lifecycle event is not counted as a kernel crash.
    • kernel.hung_task_timeout_secs=120 has been enabled since September 9, without enabling panic.
    • Kernel files retained locally are mostly bounded journal excerpts, not complete traces spanning onset. One September 9 export was found to contain tool truncation markers; I am explicitly excluding it as a complete log.
    • No deterministic reproducer has yet been validated on this machine. I have not run the h5py reproducer posted above yet.
    • Repeated forced terminations may confound later journal/filesystem symptoms. C: also had only about 8.1 GiB free at one inspection; host storage and VHD placement still need checking. Neither resource exhaustion nor hardware instability has been ruled out.
    • No official Windows-side WSL trace spanning the onset or kernel dump is available yet. Raw logs have not been publicly attached pending privacy review.

    The Herdr defensive mitigation is tracked in the now-merged herdrdev/herdr#2179; it was never intended as a fix for the underlying guest failure.

    Would a default/storage-profile WSL trace plus guest blocked-task stacks be the most useful next capture, or would you prefer a separate issue for the bad-page-map/preemption/I/O evidence? I can provide the retained kernel excerpts after privacy review and perform a bounded, maintainer-directed reproduction in a maintenance window.

  10. pellorao commented on Oct 17, 2026

    @pellorao

    Additional observations on the newer running kernel 6.18.54.1-microsoft-standard-WSL2, captured on 2026-10-17. This is additional version/call-path evidence for the VMA stall family; I have not established an identical root cause. The mmap path closely matches the Kafka/JVM stack already posted in this issue. Related: #41708.

    Environment: WSL 2; Windows build: 10.0.26300.9711; WSL package version: 3.0.3.0 (bundled kernel 6.18.54.1-1; WSLg 1.0.79); distro: Ubuntu 26.04.1 LTS (current installed release). Current affected runtime: Node.js; the installed Node reports v24.20.0 in a later check, but that version/executable hash was not independently bound to the hung process. Earlier occurrence: CPython 3.14.8 (python-build-standalone), on the same kernel version but a different guest boot. Read-only host queries report an Intel Core i9-14900K and BIOS version 1836; current CPU/memory stability has not been established.

    Thread IDs have been replaced with descriptive labels; kernel symbols and offsets are unchanged. All stacks below are complete as returned by the saved per-thread stack files, not complete native userspace backtraces.

    Current occurrence, main thread, D state:

    [<0>] __vma_start_write+0x66/0x110
    [<0>] vma_expand+0x74/0x240
    [<0>] vma_merge_new_range+0x79/0x160
    [<0>] __mmap_region+0x424/0xca0
    [<0>] mmap_region+0x63/0xb0
    [<0>] do_mmap+0x47e/0x670
    [<0>] vm_mmap_pgoff+0x117/0x200
    [<0>] ksys_mmap_pgoff+0x4d/0x1f0
    [<0>] __x64_sys_mmap+0x37/0x50
    [<0>] x64_sys_call+0x1d59/0x20f0
    [<0>] do_syscall_64+0x6e/0xfa0
    [<0>] entry_SYSCALL_64_after_hwframe+0x76/0x7e
    

    The current Node occurrence was in a post-processing reader after a separate Python producer had completed and exited zero. That reader was intended to read a roughly 330 MiB JSON record and extract its output using an in-memory SQLite query, but there are no internal stage markers or native userspace backtrace to establish which allocation or library call it reached. Subsequent independent low-memory streaming checks of both saved serialized results and the read-only database payload matched the full reference output and the independently checked date/count relations; the producer was not rerun. Thus this particular stall does not itself demonstrate a wrong saved result.

    The main thread was already in D at __vma_start_write before the supervisor sent SIGTERM. Full stacks were captured about ten minutes later; SIGKILL/TERM were pending in a saved status snapshot. At stack capture, all six companions were in signal-driven group exit, so these stacks do not establish their paths before termination or identify a reader holding the VMA reference.

    Workers A and F (two independently saved stacks, byte-identical):

    [<0>] lock_mm_and_find_vma+0x94/0x540
    [<0>] do_user_addr_fault+0x1d8/0x710
    [<0>] exc_page_fault+0x6d/0x140
    [<0>] asm_exc_page_fault+0x2b/0x30
    [<0>] __put_user_4+0xd/0x20
    [<0>] exit_mm_release+0x26/0x30
    [<0>] do_exit+0x1db/0xae0
    [<0>] do_group_exit+0x38/0x90
    [<0>] get_signal+0x8b1/0x8c0
    [<0>] arch_do_signal_or_restart+0x32/0x240
    [<0>] exit_to_user_mode_loop+0x7c/0xf0
    [<0>] do_syscall_64+0x26b/0xfa0
    [<0>] entry_SYSCALL_64_after_hwframe+0x76/0x7e
    

    Workers B through E (four independently saved stacks, byte-identical):

    [<0>] do_exit+0x1f9/0xae0
    [<0>] do_group_exit+0x38/0x90
    [<0>] get_signal+0x8b1/0x8c0
    [<0>] arch_do_signal_or_restart+0x32/0x240
    [<0>] exit_to_user_mode_loop+0x7c/0xf0
    [<0>] do_syscall_64+0x26b/0xfa0
    [<0>] entry_SYSCALL_64_after_hwframe+0x76/0x7e
    

    Earlier occurrence, different guest boot, Python main thread, D state:

    [<0>] __vma_start_write+0x66/0x110
    [<0>] move_vma+0x15c/0x570
    [<0>] do_mremap+0x613/0x7b0
    [<0>] __do_sys_mremap+0x97/0xc0
    [<0>] __x64_sys_mremap+0x29/0x30
    [<0>] x64_sys_call+0x1a57/0x20f0
    [<0>] do_syscall_64+0x6e/0xfa0
    [<0>] entry_SYSCALL_64_after_hwframe+0x76/0x7e
    

    Its saved companion stack was identical to the workers B–E stack above. This occurrence happened while a large JSON encoding call had not returned; the user-space native allocation call chain and mremap arguments were not obtained. A previous targeted read of that process's syscall procfs file also blocked, so I am not repeating it.

    The matching Microsoft kernel tag's mm/mmap_lock.c explains the per-VMA writer wait in terms of draining VMA reader references. No actual VMA/refcount/reader identity or closed lock dependency cycle was captured. I therefore cannot confirm a leaked reference, a specific lock owner, a permanent deadlock, or a kernel-versus-hardware cause. The saved guest kernel log had no relevant OOM, bad-page or oops entry; that absence does not exclude such causes.

    An intermittent silent numeric mismatch was also saved locally, but it has no established causal link to either stall. I am keeping it separate rather than attributing it to this kernel path. No private input data, database, full application output, boot UUID, namespace identifier, host name, user path, or process-memory dump is included here. No deterministic minimal reproducer or Windows-side WSL ETL trace spanning onset is available in this candidate.

  11. dark2momo commented on Oct 25, 2026

    @dark2momo

    Follow-up to my earlier cross-version and bad-page-map reports: a later run on WSL 3.0.3.0 / 6.18.54.1-microsoft-standard-WSL2, Ubuntu 22.04 ended in a captured kernel panic, not just an unresponsive application. This is a different failure signature from the original VMA wait; I have not established a common root cause.

    Timeline (UTC+08:00, October 25–26, 2026)

    • Oct 25 20:56:34: Codex CLI 0.164.0 (Linux musl standalone) received SIGSEGV.
    • 20:56:37: the persisted guest kernel journal recorded BUG: Bad page map in process tokio-rt-worker pte:100f682570, followed by BUG: Bad rss-counter state ... type:MM_FILEPAGES val:1. The stack includes vm_normal_page -> unmap_page_range -> unmap_vmas -> exit_mmap -> __mmput -> do_exit. A later Codex crash at 21:19 was already marked Tainted: [B]=BAD_PAGE.
    • Oct 26 01:24:51 and 01:25:38: separate image-service Python processes received SIGSEGV in libcudnn_engines_precompiled.so.9 and libcublasLt.so.12. These could have independent userspace/library causes; chronology does not establish that the bad PTE caused them.
    • 01:35:39: the WSL VM exited. Windows retained a kernel-panic-*.txt for the matching VM. Its final lines include:
    RIP: 0010:clear_inode+0x7d/0x90
    Kernel panic - not syncing: Fatal exception
    

    The captured call trace (selected frames, original ordering from callee toward caller):

    ext4_clear_inode+0x26/0x90
    ext4_evict_inode+0xa5/0x710
    evict+0x10e/0x290
    dispose_list+0x4c/0x80
    prune_icache_sb+0x5c/0x80
    super_cache_scan+0x14b/0x1c0
    do_shrink_slab+0x145/0x350
    shrink_slab+0x27d/0x3c0
    drop_slab+0x82/0x110
    drop_caches_sysctl_handler+0x8a/0xe0
    proc_sys_call_handler+0x1b4/0x2c0
    proc_sys_write+0x17/0x20
    vfs_write+0x246/0x410
    ksys_write+0x6d/0xe0
    __x64_sys_write+0x1d/0x30
    

    The Windows-captured text starts at Call Trace, so the initial exception description and task identity are missing. I cannot identify the caller from this fragment alone. The guest journal had earlier mini_init: drop_caches: 3 entries; .wslconfig has no explicit autoMemoryReclaim override. Cache reclamation is the observed panic path, not proof that reclamation caused the initial corruption. I have not yet tested disabling automatic reclamation and am not presenting that as a confirmed workaround.

    Important confounders

    • Host: Intel Core i9-14900KF, ASUS ROG MAXIMUS Z790 DARK HERO, BIOS 1503 (2024-08-07), Windows-reported microcode 0x129. No BIOS update was performed during these observations.
    • Historical Windows WHEA 19 events on September 26/27/29 reported corrected processor-core internal parity errors (APIC 57). No WHEA event was returned by the latest 24-hour query, which does not rule out hardware instability. CPU/RAM/firmware stability has not been validated. Please do not interpret this as proof of a WSL regression.
    • The root filesystem previously required an offline ext4 repair after repeated failures. This boot mounted read/write after journal recovery. Prior filesystem damage/recovery is another confounder.
    • There is no deterministic minimal reproducer, no Windows ETL spanning onset, and no full kernel memory dump. The retained evidence is a persisted previous-boot journal plus the Windows-captured panic text. Private paths, host/VM identifiers, and unrelated application output are omitted here.

    Would you prefer this clear_inode panic as a separate issue, and which capture would help distinguish an inode/cache-reclaim defect from pre-existing memory corruption? I can supply the retained stack excerpt and follow a bounded diagnostic procedure. Related userspace defensive mitigation: herdrdev/herdr#2179 (not claimed to fix this kernel panic).

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

Metadata

Metadata

Labels

bugkernelneeds-investigation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions