Tracking: Verified crashes, memory-safety bugs, hangs, and GPU/shader blockers for playable Xbox builds #533
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner#533
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Tracking issue for verified crashes, memory-safety bugs, hangs, rendering/shader defects, and build/stability blockers affecting playable Xbox builds on
main.Critical (Crashes, Memory Safety, Dropped Rendering)
crates/darner-hle/src/modules/xasync.rs:655-664, 724-727, 1267)queue()callsArc::increment_strong_count(handle)on raw*const Queuewithout validation. If the title closes/reuses the handle duringcomplete_call, this causes a UAF and heap corruption. Fix: Use a handle table with generation counters or captureArcclones on commit.crates/darner-hle/src/modules/audio.rs:167-177, 226-234)heap_bytes()drops theHEAPlock and returns&'a mut [u8]with an unbounded lifetime whileheap_free()candeallocthe block from another thread. Fix: Track active in-flight decoder borrows or copy/pin blocks until decode completes.crates/darner-hle/src/modules/apu.rs:434)std::slice::from_raw_parts(input, input_length as usize)only checksinput.is_null(), notinput_lengthbounds or backing memory. Fix: Validate length/bounds against mapped audio heap ranges.XMemFreeDefaultarbitrary header read (crates/darner-hle/src/modules/xmem.rs:1096-1117)Reads
user.sub(HEADER).cast::<AllocHeader>().read()and callsdealloc/VirtualFreewith no magic/generation check; double-frees or external pointers corrupt the host heap. Fix: Validate a magic tag and generation before freeing.crates/darner-loader/src/crash.rs:700-764;crates/darner-loader/src/console_insn.rs:395)report()allocates (String::new(),format!,Vec,eprintln!) inside the exception filter, andPATCHING: Mutexis held acrossVirtualProtect/allocation—causing deadlocks or lost crash logs on heap-lock AVs or nested faults. Fix: Use a pre-allocated static buffer + rawWriteFileincrash.rs, and a reentrancy guard in the VEH.CancelRequestsWithTagis a no-op (crates/darner-hle/src/modules/dstorage.rs:2321-2327)Logs a warning and lets queued reads complete, risking writes into freed/reused title buffers. Fix: Cancel unstarted matching requests with
E_ABORT.rsp-relative corruption & unchecked reads (crates/darner-loader/src/write_sites.rs:97, 145, 253, 276)vector_stub(lea rsp, [rsp-32]) andmove_stub(push rcx) shiftrspbefore executing[m];apply()reads 16 bytes withptr::read_unalignedwithoutVirtualQueryorchecked_add, and skipsFlushInstructionCacheon the new stubto.VirtualQuerycache & multi-threadclzeropatching race (crates/darner-loader/src/console_insn.rs:44, 297, 323, 554)Thread-local
WRITABLEcache is never invalidated onVirtualFree/VirtualProtect;zero_through_faultwrites toMEM_RESERVEpages;patch_clzerooverwrites 5 bytes in place by default, risking0xc000001don concurrent threads.crates/darner-gpu/src/gpu_owned.rs:435, 518, 538-578)read_backholdsENGINE.lock()and callsWaitForSingleObject(..., INFINITE), freezing all faulting threads on GPU hang/TDR.crates/darner-gpu/src/memory.rs:29-31;crates/darner-gpu/src/dxr.rs)Unmapped 64 KiB pages return
0and drop stores on first access, breaking BVH/RT dispatches (DARNER_BVH_BUILDER=1).0x1c8graphics pipeline deserialization returnsE_NOTIMPL(crates/darner-gpu/src/device.rs:959, 743-756;crates/darner-shader/src/native.rs:527;docs/loose-pipelines.md:6-9)f[57]routes tounknown_pipeline::<0x1c8>(reads only 128 bytes instead of ~264) and returnsE_NOTIMPL, contributing to 3–29% dropped draws. Requires a console-register-packetGraphicsStatedecoder (never returnS_OKwithout a builtHostPipeline).crates/darner-shader/src/emit/mod.rs:999-1005;crates/darner-shader/src/emit/lower.rs:10613-10620)with_local_waves_anymasks lanes with& 31, silently splitting 64-lanev_readlaneacross two 32-lane waves.set_host_max_wave(apps/darner/src/main.rs:788-790vsdocs/findings.md:259-262)Command::Shadersnever sets host max wave size, sodarner shadersreports zero Wave64 failures.High (Hangs, Panics, Compatibility)
crates/darner-loader/src/tls.rs:86-99)Matches
mov r64, gs:[0x58]by raw bytes; false positives inside instructions on other titles/builds will crash on first TLS access.size_of_image, first-matching section, and truncates export VAs (crates/darner-pe/src/image.rs:233-245, 337-343, 373)crates/darner-gpu/src/fence.rs:213-254;crates/darner-gpu/src/host.rs:8343-8376)DARNER_FENCE_WAIT_MSis opt-in; stuck fences loop indefinitely with 5s warnings. Fix: Add a default watchdog that dumps device state and exits cleanly.ResizeBuffersretry loop cause dead/black frames (crates/darner-gpu/src/draw.rs:5311-5319;crates/darner-gpu/src/host.rs:20185-20218).unwrap()panics infacewatch::wrote()(crates/darner-gpu/src/facewatch.rs:235, 254, 273, 293, 350)crates/darner-shader/src/native.rs:64-69;spill.rs:25, 39-55, 67-70;emit/bitcode.rs:355)Merged stages and
0x0etables unread;spill.rsonly handles compute SGPR-16 constant-dword spills;bitcode::aggregatepanics on non-constants.crates/darner-hle/src/modules/files.rs:32)host!macro panics instead of returning a Win32 error /E_NOTIMPL.crates/darner-hle/src/modules/dstorage.rs:1-5;crates/darner-hle/src/modules/xstore.rs)Newer GDK DirectStorage slots only log;
xstorereports zero DLCs and fails catalog/update queries.apps/darner/src/play.rs:826-857;crates/darner-gpu/src/host/menu.rs:3098-3140)one_at_a_time_inproceeds after 60s even if the previous instance hasn't exited.Medium (Leaks, Overflows, Stability)
crates/darner-gpu/src/stream_retire.rs:4-5, 66-72, 117, 210-212;resource.rs:4706)Disabled state triggers ~8,192
VirtualQuery/s; enabled state dropspop_front()atMAX_QUEUE_LEN = 16_384.assume_init()race (crates/darner-gpu/src/timeline/record.rs:666-688)crates/darner-shader/src/structure.rs:356, 383-384)tx * ty * tzcompute group multiplication (crates/darner-shader/src/fold.rs:1467;crates/darner-shader/src/native.rs:855-859)quant_stepaccumulator in XMA decoder (crates/darner-formats/src/xma.rs:1224-1237)DARNER_DUE_INDEXrelease panics & unprunedheldwalk (crates/darner-gpu/src/descriptor/host.rs:1818-1836)crates/darner-gpu/src/pipeline.rs:1072-1074;device.rs:824-830)crates/darner-gpu/src/host/panel.rs:1411, 1512, 1520)VirtualProtectrestore failures &PreparedImage::patchoverwrite (crates/darner-loader/src/tls.rs:67,cbv_align.rs:113,windows.rs:268, 455,prepare.rs)DARNER_SLOTS_BITMAP=1lacks startup warning (crates/darner-gpu/src/descriptor/slots.rs:35-43)crates/darner-gpu/src/streamline.rs:18-19, 57)Static audit of the 33 items (source reading, no build)
I read the cited files on
main(2026-12-05). This is a code-level check only: it confirms the cited pattern, not runtime reproduction.Result: 26 confirmed by code, 6 partial, 1 not confirmed.
Partial:
PATCHINGlock acrossVirtualProtectis not fully traced.rspshifts were not in the cited stub portions.wrapping_sub(image_base) as u32remain.SwapChainRetry, once per second); dead/black frames are not proven by code, and the citeddraw.rs:5311-5319is texture-upload admission.VirtualQuery/s figure is not instream_retire.rs.assume_init()confirmed; the race is plausible, not proven.Not confirmed: #33 (frame-gen 20% VRAM holdback).
streamline.rs:18-19isDARNER_THIN/DARNER_ASYNC_SUBMIT;:57isDEFAULT_DIR. Noholdback/reserve/20%instreamline.rs,streamline/plan.rs,streamline/fsr.rs, orstreamline/fg_rect.rs.Most useful confirmations:
lower.rs:10830-10835masks the lane with& 31in the approximate local-wave path. Exact64 is the safe path.main.rs:800-801(Command::Shaders->precompile) never callsset_host_max_wave; onlytranslate::rundoes (translate.rs:288-289), and fromDARNER_HOST_MAX_WAVE, notDARNER_HOST_WAVE.device.rs:959/1053returnsE_NOTIMPLfor0x1c8;docs/loose-pipelines.mdsays 3-29% dropped draws.gpu_owned.rs:435/518useINFINITE;fence.rshas no default watchdog.play.rs:977-980waits 60 s and then starts anyway."Confirmed" means the cited code matches the claim. It does not prove the bug reproduces; several items need ASan, a debugger, or a crafted input.