xmem: map_alias of no pages changes nothing, next to a reservation shown whole too #99
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!99
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-99"
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?
@ySKELLETONX on GitHub · 2026-11-25 14:03 UTC · original
ySKELLETONX:fix/map-alias-no-pages→main· +5 −0 · 1 files · 1 commits · closed without mergingWhy
map_alias(to, from, 0)should change nothing, but it returns false whentois the first byte past one reservation and the next reservation is shown whole.in_whole(to, 0)is true for an empty range at either end of a whole range (at <= to && to + 0 <= at + n).mapping_no_pages_changes_nothingcalls it ata + 2 * PAGE, right past its own 2-page reservation. With #93 applied, its newa_large_run_of_pages_is_shown_wholeleaves a 65-page reservation shown whole. When the two tests run in parallel and that reservation is placed directly after the small one, the test fails at theassert!(map_alias(at as u64, a as u64, 0))line.What
map_aliasreturns true forlen == 0before it takes the lock. Nothing else changes.Testing
RX 7600 XT 16 GB (RDNA3), Windows 11 Pro build 26300, Rust 1.98.1.
68d437d) alone:cargo test -p victory-hle --lib xmemfailed in 9 of 40 runs, alwaysmapping_no_pages_changes_nothing. With--test-threads=1, or with--skip a_large_run_of_pages_is_shown_whole: 0 of 40.mainalone, this movesmapping_no_pages_changes_nothingpast itsmap_aliascheck (the failure at xmem.rs:1386 in #91). It still fails further on (4096vs8192), and #93 fixes that part. The other 4 xmem failures are unchanged here.Related: #93, #91, #8.
5c0efcc776to600075e6c5@ySKELLETONX on GitHub · 2026-11-26 15:10 UTC · original
Closing this: #14 and #16 both carry the same change (
map_aliasreturnstrueforlen == 0before thein_wholecheck) together with the fix for the fivexmemfailures, so whichever of them is merged covers it, and this would only conflict. Checked here onmain4f62c2a: each of them passes allxmemtests (#16 in 50 of 50 runs).Pull request closed