Repository navigation
kernelx: a failed physical page read or write commits no earlier home - #1781
Luislariosss wants to merge 1 commit into
Conversation
resolve_physical_pages committed each page's home as it resolved it: a multi-page read or write that failed on a later page left the earlier pages' sparse homes reserved, memory the title cannot account for. All page_home lookups are collected and validated before the first home_again runs; the success path resolves the same homes in the same order as before. Measured: cargo test -p xcl --lib kernelx at this head: 37 passed, 0 failed, 1 ignored; the new test fails without the fix. Assisted-by: opencode (Sonnet fix and gate; HY4 Flash Free)
|
NVIDIA test report for Tested
Regression run ( base ( this PR: Not tested: a failed multi-page physical read or write in the title (none is logged at its start screen); the world load; AMD. AI use: Claude Code (Claude Opus 5.5) built and ran the tests and smoke runs on my machine and wrote this report; I checked it. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent CPU-only reproduction on exact head The existing regression depends on sparse GPU setup. The new test instead registers three reserved Windows pages as a synthetic plain physical-page home in an isolated child process and calls the real Tested
Not tested AI use: Codex (GPT-6; exact variant unavailable) wrote the CPU variant and negative control, ran verification and prepared this report. |
|
Test report for exact head Tested
main: PR: Not tested: AMD, the head merged onto current AI use: Claude Code (Claude Opus 5.5) ran this and wrote the report; the diff was read for safety by a Claude Opus 5.5 sub-agent before it was built. |
resolve_physical_pagescommitted each page's home as it resolved it: a multi-page read or write that failed on a later page left the earlier pages' sparse homes reserved — memory the title cannot account for, surfacing later as an allocation or mapping failure.What is in it
page_homelookup forpages[..need]is collected and validated before the firsthome_againruns; a failed read or write commits nothing.failed_physical_page_read_or_write_does_not_commit_earlier_sparse_homes: a write and a read that fail on their second page leave the first page's home uncommitted (the test no-ops on an adapter without sparse pages).Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2609.5 throughXCL_DXC_DIR;CARGO_PROFILE_TEST_DEBUG=0.cargo test -p xcl --lib kernelxat the head: 37 passed, 0 failed, 1 ignored. The new test fails without the fix (verified by reverting the fix hunk and back).cargo build --workspacethencargo test --workspace --no-fail-fast -- --test-threads=4): 876 passed, 0 failed, 38 ignored (20 test binaries;SKIPPED:pso_measurement_compiles_an_exact_synthetic_record— cannot disable the driver cache;heap_window_out_of_memory_falls_back_to_the_switch_form— no heap windows).title:line readsretail-title, the folder name is withheld):main (
85e3826, clean tree):head (
dbdc480, clean tree):Not tested
AI use