gpu: keep the alias registry test independent of bottom-up ASLR #1111
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1111
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1111/head"
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?
@archielcqp-a11y on GitHub · 2026-11-24 01:10 UTC · original
archielcqp-a11y:gpu/alias-registry-first-fit-v2→main· +10 −2 · 2 files · 1 commits · merged 2026-11-24 01:47 UTCChange
check_gpu_alias_registryneeds a free 64 KB block below its first graphics allocation. With bottom-up ASLR off,VirtualAlloc(nullptr, ...)places allocations first-fit from the bottom, no block remained below, and bothgpu_alias_registrytests failed in setup ("region below the first allocation"). The block is now committed before the first allocation, which first-fit placement then puts above it; when randomized placement puts it higher, the test releases it and searches below as before. Independent problem; no issue.Verification
Commit
4921f15on upstream31f9ebb, Windows 10 build 19045, RTX 3080 and WARP, debug layer enabled.Bottom-up ASLR off (Windows Security → Exploit protection, after a restart), 10 runs of
ctest --test-dir <build> --no-tests=error -R '^gpu_alias_registry_'per build, original and fixed source each rebuilt (measured on the original based2ac415; on31f9ebbsee the stacked run below):With bottom-up ASLR on: 10/10 passed in all three builds.
Also tested on upstream
31f9ebbwith all five rebased changes stacked (620 tests, Agility SDK 1.620.2 + WARP 1.0.22 build, bottom-up ASLR off):gpu_alias_registry_hardware/_warp,cpu_shim_shadow_warp,cpu_shim_chain_warpand bothwave64_emulatetests pass. The remaining failures also fail on plain31f9ebb:bvh_wave64_warp,wave_shuffle_warp(#145),cpu_archive_texture_gpu_warp,cpu_native_load_config_callback,pe_package_import_closure.Evidence and follow-up
No new fixture.
docs/experiments.mdgains a paragraph after the existing note on the interior block's search.Checklist
This change was AI-assisted.
🤖 Generated with Claude Code
check_gpu_alias_registry needs a free 64 KB block below its first graphics allocation. With bottom-up ASLR off, VirtualAlloc(nullptr) places allocations first-fit from the bottom and no block remained below, so the test failed in setup ("region below the first allocation"). The block is now committed before the first allocation, which first-fit placement then puts above it; with randomized placement the test falls back to the existing search below. Windows 10 19045, bottom-up ASLR off after a restart, 10 runs each of ctest -R '^gpu_alias_registry_' (RTX 3080 and WARP): dev/w10/release original 10/10 runs failed, fixed 0/10 failed. With ASLR on: 10/10 passed in all three builds. This change was AI-assisted. Co-Authored-By: Claude Opus 5.5 <[email protected]>