[removed by author] #280
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/284"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by thegl0w on 2026-11-21T20:34:44Z.
[removed by author]
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T20:55:54Z.
TitleLookupchecks only the first byte, but both shaders use the result for a four-byte raw UAV operation. A start inside the last three bytes currently reports success, and an unaligned offset can reach a raw load/store or atomic. Please validate the entire aligned DWORD access before issuing it (or keep the helper byte-oriented and check at its callers). Add last-valid-word, tail-crossing and misaligned controls, with unchanged backing words for rejected writes.Imported from R0Y00/Xbox2Windows. Originally posted by thegl0w on 2026-11-21T21:23:32Z.
Thanks, agreed.
1c19cb6validates the entire aligned DWORD before any access is issued.TitleLookupnow takes the access size (bytes, a multiple of 4). It succeeds only when:[address, address + bytes)lies inside one range, checked asbytes <= size && start <= size - byteson the in-range offset.Both shaders call it with 4.
shader_rangesalso rejects a range that does not start on a 4-byte boundary, since that would misalign the raw offsets even for an aligned address.Controls added:
gpu_alias_lookup: reads each range's last valid word (a hit), the aligned word after it (a miss; tail-crossing for the placed range), and misaligned starts at+1/+2/+3andend-1/-2/-3. That makes 150 records with 48 misses.gpu_alias_lookup_writes: adds a rejected store and a float min on the tail-crossing word, and misaligned store, add and sub inside ranges. All of them must report 0. Every word of all four allocations is then compared through the title pointers, which checks that rejected writes leave the backing words unchanged, including the two in-range bytes of the tail-crossing word. The last valid word of each range is also a successful store.era_title_va_shader: covers the unaligned-start rejection.Negative controls: each of these fails both GPU tests on WARP.
Results at
1c19cb6, Windows 11 build 26300, debug layer unavailable locally:gpu_alias_lookup_warpandgpu_alias_lookup_writes_warppassed on WARP 10.0.26100.9818 with mismatches 0.bvh_wave64_warpandwave_shuffle_warpskipped, as onmainon this PC). A strict/W4 /WX /permissive-compile of the host sources is clean, and the earlier table mutants are still caught.