tooling: add bad-pointer fault-equivalence area (fault_reads) to fuzz_cpu #3340

Manually merged
github merged 1 commit from github-bot/gh-3338 into gh-pr/3338/base 2026-11-29 13:03:25 +00:00 AGit
Owner

@⁠Ammmae0x on GitHub · 2026-11-28 11:16 UTC · original
Ammmae0x:tooling/fuzz-cpu-fault-reads → main · +736 −5 · 3 files · 1 commits · merged 2026-11-29 13:03 UTC

Change

Refs #446.

  • Add deterministic bad-pointer fault-equivalence fuzz area fault_reads (generate_fault_reads, registered in AREAS["fault_reads"]) to tools/fuzz_cpu.py, generating bounded leaf functions for cpu_switch_aot that execute dead/overwritten 8/16/32/64-bit guest memory reads ([rcx], [rdx], [rcx+disp] across mov, movzx/movsx/movsxd, cmp, test, ALU, cmovcc, bt, and paired loads) alongside live-read and null-skipping valid-pointer controls.
  • Register MUTANTS["fault_reads"] = ("drop_dead_read", plant_drop_dead_read) removing the volatile qualifier on load_always so MSVC /O2 optimizes out unused faulting reads.
  • Extend fuzz_cpu.py check for fault_reads to execute isolated child probes (--_fault-probe) over valid mapped buffers (VirtualAlloc), PAGE_NOACCESS pages (VirtualProtect), unmapped low address (0x100), and null pointers against native, lifted /Od, and lifted /O2 DLLs, verifying matching exit/exception status (0xC0000005 on bad pointers), return value, and pre/post-fault output buffer bytes, plus verifying --mutant drops faults under /O2.
  • Add unit/integration suite tests/fuzz_cpu_fault_check.py and CMake registration tests/cmake/cpu_fuzz_faults.cmake (cpu_aot_fuzz_faults and tooling_fuzz_cpu_fault_check).

AI-assisted.

Verification

Tested on commit 7f8935d4 (tooling/fuzz-cpu-fault-reads) on Windows x64 (MSVC 14.50):

  • cmake --preset dev && cmake --build --preset dev --target cpu_fuzz_fault_reads cpu_fuzz_fault_reads_lifted cpu_fuzz_fault_reads_o2 (and all sibling cpu_fuzz* targets) -> exit 0, 0 warnings on cpu_fuzz_fault_reads*.
  • cmake --preset release && cmake --build --preset release --target cpu_fuzz_fault_reads cpu_fuzz_fault_reads_lifted cpu_fuzz_fault_reads_o2 (and all sibling cpu_fuzz* targets) -> exit 0, 0 warnings on cpu_fuzz_fault_reads*.
  • ctest --preset dev --no-tests=error -R "^(cpu_aot_fuzz_faults|tooling_fuzz_cpu_fault_check|cpu_aot_fuzz.*)$" -E "cpu_native_archive_" --output-on-failure -> exit 0 (12/12 passed):
    • cpu_aot_fuzz_faults: area=fault_reads seed=0xfa17 functions=29 inputs=7 comparisons=406 default and /O2 matched; mutant drop_dead_read: 101/203 mismatches (101 dropped faults) in 25/29 functions
    • tooling_fuzz_cpu_fault_check: Ran 5 tests in 0.059s OK + end-to-end equivalence + negative control (/O2 mutant passed as o2 failed equivalence with 0xc0000005)
  • ctest --preset release --no-tests=error -R "^(cpu_aot_fuzz_faults|tooling_fuzz_cpu_fault_check|cpu_aot_fuzz.*)$" -E "cpu_native_archive_" --output-on-failure -> exit 0 (12/12 passed).
  • ctest --preset dev --no-tests=error -R "^tooling_fuzz_cpu_cli_check$" --output-on-failure -> exit 0 (1/1 passed).
  • out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py, tests/docs_links_check.py, tests/bidi_controls_check.py -> all exit 0.
  • Empirical spot-mutations in tools/fuzz_cpu.py (dropping exception status comparison, dropping fault_drops check, and disabling missing-needle SystemExit in plant_drop_dead_read): all 3 failed tooling_fuzz_cpu_fault_check (exit 8) and were cleanly restored.

Evidence and follow-up

  • All generated assembly functions are synthetic bounded x86-64 leaves emitted deterministically by tools/fuzz_cpu.py under seed 0xFA17 (24 generated functions + 5 controls = 29 exports).
  • Isolated child probes call SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX) and release all VirtualAlloc allocations in finally.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.
**@⁠Ammmae0x** on GitHub · 2026-11-28 11:16 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3338) `Ammmae0x:tooling/fuzz-cpu-fault-reads` → `main` · +736 −5 · 3 files · 1 commits · merged 2026-11-29 13:03 UTC ## Change Refs #446. - Add deterministic bad-pointer fault-equivalence fuzz area `fault_reads` (`generate_fault_reads`, registered in `AREAS["fault_reads"]`) to `tools/fuzz_cpu.py`, generating bounded leaf functions for `cpu_switch_aot` that execute dead/overwritten 8/16/32/64-bit guest memory reads (`[rcx]`, `[rdx]`, `[rcx+disp]` across `mov`, `movzx`/`movsx`/`movsxd`, `cmp`, `test`, ALU, `cmovcc`, `bt`, and paired loads) alongside live-read and null-skipping valid-pointer controls. - Register `MUTANTS["fault_reads"] = ("drop_dead_read", plant_drop_dead_read)` removing the `volatile` qualifier on `load_always` so MSVC `/O2` optimizes out unused faulting reads. - Extend `fuzz_cpu.py check` for `fault_reads` to execute isolated child probes (`--_fault-probe`) over valid mapped buffers (`VirtualAlloc`), `PAGE_NOACCESS` pages (`VirtualProtect`), unmapped low address (`0x100`), and null pointers against native, lifted `/Od`, and lifted `/O2` DLLs, verifying matching exit/exception status (`0xC0000005` on bad pointers), return value, and pre/post-fault output buffer bytes, plus verifying `--mutant` drops faults under `/O2`. - Add unit/integration suite `tests/fuzz_cpu_fault_check.py` and CMake registration `tests/cmake/cpu_fuzz_faults.cmake` (`cpu_aot_fuzz_faults` and `tooling_fuzz_cpu_fault_check`). AI-assisted. ## Verification Tested on commit `7f8935d4` (`tooling/fuzz-cpu-fault-reads`) on Windows x64 (MSVC 14.50): - `cmake --preset dev && cmake --build --preset dev --target cpu_fuzz_fault_reads cpu_fuzz_fault_reads_lifted cpu_fuzz_fault_reads_o2` (and all sibling `cpu_fuzz*` targets) -> exit `0`, 0 warnings on `cpu_fuzz_fault_reads*`. - `cmake --preset release && cmake --build --preset release --target cpu_fuzz_fault_reads cpu_fuzz_fault_reads_lifted cpu_fuzz_fault_reads_o2` (and all sibling `cpu_fuzz*` targets) -> exit `0`, 0 warnings on `cpu_fuzz_fault_reads*`. - `ctest --preset dev --no-tests=error -R "^(cpu_aot_fuzz_faults|tooling_fuzz_cpu_fault_check|cpu_aot_fuzz.*)$" -E "cpu_native_archive_" --output-on-failure` -> exit `0` (`12/12` passed): - `cpu_aot_fuzz_faults`: `area=fault_reads seed=0xfa17 functions=29 inputs=7 comparisons=406 default and /O2 matched`; `mutant drop_dead_read: 101/203 mismatches (101 dropped faults) in 25/29 functions` - `tooling_fuzz_cpu_fault_check`: `Ran 5 tests in 0.059s OK` + end-to-end equivalence + negative control (`/O2` mutant passed as `o2` failed equivalence with `0xc0000005`) - `ctest --preset release --no-tests=error -R "^(cpu_aot_fuzz_faults|tooling_fuzz_cpu_fault_check|cpu_aot_fuzz.*)$" -E "cpu_native_archive_" --output-on-failure` -> exit `0` (`12/12` passed). - `ctest --preset dev --no-tests=error -R "^tooling_fuzz_cpu_cli_check$" --output-on-failure` -> exit `0` (`1/1` passed). - `out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py`, `tests/docs_links_check.py`, `tests/bidi_controls_check.py` -> all exit `0`. - Empirical spot-mutations in `tools/fuzz_cpu.py` (dropping exception status comparison, dropping `fault_drops` check, and disabling missing-needle `SystemExit` in `plant_drop_dead_read`): all 3 failed `tooling_fuzz_cpu_fault_check` (exit `8`) and were cleanly restored. ## Evidence and follow-up - All generated assembly functions are synthetic bounded x86-64 leaves emitted deterministically by `tools/fuzz_cpu.py` under seed `0xFA17` (`24` generated functions + `5` controls = `29` exports). - Isolated child probes call `SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX)` and release all `VirtualAlloc` allocations in `finally`. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 11:26:52 +00:00
Author
Owner

@⁠Leyukaka on GitHub · 2026-11-29 05:52 UTC · original · reviewed

Comment at 7f8935d4, no blocking finding. I read the diff and the code around it on main 212d4b5f. Nothing was built or run.

Semantics. The PR changes only tests and tools/fuzz_cpu.py; the translator is untouched. On main, cpu_switch_aot already reads every non-frame memory operand through the volatile load_always (cpu_switch_aot.py:977-979), with static_cast<void>(mem) for a CMP/TEST read nothing uses (:963-964). A CMOVcc memory source goes through the same path and is read before the condition (:1464-1465), and bt m, imm reads through operand() (:1293). The mutant's needle matches cpu_switch_aot.py:2316 exactly. In every generated function the loaded value is never used and the flags are overwritten before any consumer. In cmov_dead, cmp r11d, r11d makes ne/g/l false, so only the fault can show. The reported counts are consistent with the code: 203 = 29 exports x 7 probes, 406 = 203 x 2 variants, and 25/29 mutant functions = the 24 generated ones plus fuzz_fault_control_skip_zero, whose [rcx] read is dead. The four live controls use their value.

Docs. No docs file changes, and the checklist's docs item is ticked. Every other fuzz area has a paragraph in docs/experiments.md (3458-3472), and :3460 and :3466 still list dead reads and fault equivalence as follow-ups. CONTRIBUTING.md:88 puts reproduction details there. Suggested: a paragraph with the seed, function and probe counts, the probe set, the mutant result and the ctest command, and an update of those two lines.

Tests.

  • The pr presets neither build cpu_fuzz_fault_reads* (CMakePresets.json:26-39) nor select cpu_aot_fuzz_faults / tooling_fuzz_cpu_fault_check (:46-53), so the pull request check does not cover the two new tests.
  • The unit tests mock _run_fault_probe_subprocess, and the end-to-end cases differ only by exception status. By reading, these mutations survive:
    • removing the buffer comparison (or diff is not None, fuzz_cpu.py:2424-2426): no guard has a buffer-only difference;
    • removing the native-must-fault check (:2414-2418);
    • removing the no-valid / no-PAGE_NOACCESS / no-low-address checks (:2443-2452).
  • No test reaches the per-function crash retry (:2359-2373) or the exception code parse (:2274).
  • fuzz_cpu_fault_check.py:200 says the mutant's missing volatile is verified, but only the clean source is checked (:203-205).

Merge. git merge-tree against main 212d4b5f is clean. No other open PR touches tools/fuzz_cpu.py.

**@⁠Leyukaka** on GitHub · 2026-11-29 05:52 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3338#pullrequestreview-6101644122) · **reviewed** Comment at 7f8935d4, no blocking finding. I read the diff and the code around it on main 212d4b5f. Nothing was built or run. **Semantics.** The PR changes only tests and `tools/fuzz_cpu.py`; the translator is untouched. On main, `cpu_switch_aot` already reads every non-frame memory operand through the volatile `load_always` (cpu_switch_aot.py:977-979), with `static_cast<void>(mem)` for a CMP/TEST read nothing uses (:963-964). A CMOVcc memory source goes through the same path and is read before the condition (:1464-1465), and `bt m, imm` reads through `operand()` (:1293). The mutant's needle matches cpu_switch_aot.py:2316 exactly. In every generated function the loaded value is never used and the flags are overwritten before any consumer. In `cmov_dead`, `cmp r11d, r11d` makes ne/g/l false, so only the fault can show. The reported counts are consistent with the code: 203 = 29 exports x 7 probes, 406 = 203 x 2 variants, and 25/29 mutant functions = the 24 generated ones plus `fuzz_fault_control_skip_zero`, whose `[rcx]` read is dead. The four live controls use their value. **Docs.** No docs file changes, and the checklist's docs item is ticked. Every other fuzz area has a paragraph in docs/experiments.md (3458-3472), and :3460 and :3466 still list dead reads and fault equivalence as follow-ups. CONTRIBUTING.md:88 puts reproduction details there. Suggested: a paragraph with the seed, function and probe counts, the probe set, the mutant result and the `ctest` command, and an update of those two lines. **Tests.** - The `pr` presets neither build `cpu_fuzz_fault_reads*` (CMakePresets.json:26-39) nor select `cpu_aot_fuzz_faults` / `tooling_fuzz_cpu_fault_check` (:46-53), so the pull request check does not cover the two new tests. - The unit tests mock `_run_fault_probe_subprocess`, and the end-to-end cases differ only by exception status. By reading, these mutations survive: - removing the buffer comparison (`or diff is not None`, fuzz_cpu.py:2424-2426): no guard has a buffer-only difference; - removing the native-must-fault check (:2414-2418); - removing the no-valid / no-PAGE_NOACCESS / no-low-address checks (:2443-2452). - No test reaches the per-function crash retry (:2359-2373) or the `exception code` parse (:2274). - fuzz_cpu_fault_check.py:200 says the mutant's missing `volatile` is verified, but only the clean source is checked (:203-205). **Merge.** `git merge-tree` against main 212d4b5f is clean. No other open PR touches tools/fuzz_cpu.py.
github-bot changed target branch from main to gh-pr/3338/base 2026-11-29 13:03:23 +00:00
github manually merged commit 7f8935d427 into gh-pr/3338/base 2026-11-29 13:03:24 +00:00
Author
Owner

@⁠pigalot on GitHub · 2026-11-29 13:02 UTC · original · approved these changes

Independently reviewed 7f8935d4 integrated over main af1cab5c (tree 2fbcb886). The trial merge is clean and git diff --check is clean.

What I traced. The PR adds only a generator, a checker and their tests; the translator is untouched. On main, cpu_switch_aot already performs every non-frame memory operand read through the volatile load_always, and an unused CMP/TEST read is kept by capture(). The 24 generated functions at seed 0xFA17 hold 10 mov reads (four of them in two paired-load functions), 3 test, 3 cmp, 3 bt m, imm, 2 movsx, 2 or and 3 cmovcc, across [rcx], [rdx] and [rcx+disp] at all four widths. In each one the loaded value is overwritten before use, so only the fault and the stores around it can differ. The seven probes cover two valid layouts, PAGE_NOACCESS on either or both pointers, 0x100 and null.

Build and tests. Built cpu_fuzz_fault_reads, cpu_fuzz_fault_reads_lifted and cpu_fuzz_fault_reads_o2 in dev and release, then ran
ctest --test-dir out/build/<preset> --no-tests=error -j 1 -V -R '^(cpu_aot_fuzz_faults|tooling_fuzz_cpu_fault_check|tooling_fuzz_cpu_cli_check)$':
3/3 passed in both presets, no skips. Both report functions=29 inputs=7 comparisons=406 default and /O2 matched and mutant drop_dead_read: 101/203 mismatches (101 dropped faults) in 25/29 functions, the same numbers as the PR body. In dev I also built the sibling fuzz targets and ran -R '^cpu_aot_fuzz': 11/11 passed. On main the two new tests are not registered.

Mutation tests (19 mutants, dev, each restored afterwards; git diff --quiet clean at the end).

Translator mutants in tools/cpu_switch_aot.py, rebuilt each time:

  • killed: an unused CMP/TEST read is not performed (both new tests fail; first mismatch is a function that returns where native faults);
  • killed: operand() reads through load instead of load_always;
  • survives: the bt m, reg path reads through load instead of load_always. The generator only emits bt m, imm, which goes through operand(), so this path is not reached.

Checker and generator mutants in tools/fuzz_cpu.py:

  • killed (7): status comparison dropped; return comparison dropped; default-only and /O2-only comparison; fault_drops check dropped; missing-needle guard off; controls dropped from the generator.
  • survive (9): buffer comparison dropped (or diff is not None); native-must-fault check dropped; native valid-pointer control dropped; each of the three saw_valid / saw_noaccess_fault / saw_low_fault end checks dropped; every mutant mismatch counted as a dropped fault; the mutant's buffer comparison dropped; the crash-retry condition in _run_fault_probe_subprocess replaced by True.

None of the survivors is a wrong result today: they are guards in the checker that no test exercises. Leyukaka's comment review named the first three groups by reading; I confirm them by running.

Non-blocking notes.

  1. bt m, reg (and BTS/BTR/BTC on memory) has its own load_always call and is not generated here. One generated function with a register bit index would cover it.
  2. The mocked cases in tests/fuzz_cpu_fault_check.py differ from the baseline only by status or return value. A case that differs only in the buffer, one where native does not fault on a bad pointer, and one with no valid pass would pin the nine surviving guards.
  3. docs/experiments.md still says, in the fuzz section, that dead reads and fault equivalence remain follow-ups, and every other area has a paragraph there. A short paragraph with the seed, the counts, the probe set and the ctest command would bring it up to date.
  4. The comment above the clean-source check in verify_compiled_dlls says the mutant's missing volatile is verified; only the clean translation is checked there. The mutant is covered indirectly by the dropped-fault count.

The pr presets do not build or select the two new tests. That matches the other fuzz areas (only cpu_aot_fuzz_smoke is in the pr filter), so I don't count it against this PR.

No title run: the change is tooling and tests only.

Environment: Windows 11 25H2 build 26200.9974; MSVC 19.52.37029; Python 3.12.10. No GPU tests.
CI: Build and test on Windows passed on 7f8935d4.

Approving.

This reply was AI-assisted.

**@⁠pigalot** on GitHub · 2026-11-29 13:02 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3338#pullrequestreview-6102987572) · **approved these changes** Independently reviewed `7f8935d4` integrated over `main` `af1cab5c` (tree `2fbcb886`). The trial merge is clean and `git diff --check` is clean. **What I traced.** The PR adds only a generator, a checker and their tests; the translator is untouched. On `main`, `cpu_switch_aot` already performs every non-frame memory operand read through the volatile `load_always`, and an unused CMP/TEST read is kept by `capture()`. The 24 generated functions at seed `0xFA17` hold 10 `mov` reads (four of them in two paired-load functions), 3 `test`, 3 `cmp`, 3 `bt m, imm`, 2 `movsx`, 2 `or` and 3 `cmovcc`, across `[rcx]`, `[rdx]` and `[rcx+disp]` at all four widths. In each one the loaded value is overwritten before use, so only the fault and the stores around it can differ. The seven probes cover two valid layouts, `PAGE_NOACCESS` on either or both pointers, `0x100` and null. **Build and tests.** Built `cpu_fuzz_fault_reads`, `cpu_fuzz_fault_reads_lifted` and `cpu_fuzz_fault_reads_o2` in `dev` and `release`, then ran `ctest --test-dir out/build/<preset> --no-tests=error -j 1 -V -R '^(cpu_aot_fuzz_faults|tooling_fuzz_cpu_fault_check|tooling_fuzz_cpu_cli_check)$'`: 3/3 passed in both presets, no skips. Both report `functions=29 inputs=7 comparisons=406 default and /O2 matched` and `mutant drop_dead_read: 101/203 mismatches (101 dropped faults) in 25/29 functions`, the same numbers as the PR body. In `dev` I also built the sibling fuzz targets and ran `-R '^cpu_aot_fuzz'`: 11/11 passed. On `main` the two new tests are not registered. **Mutation tests** (19 mutants, `dev`, each restored afterwards; `git diff --quiet` clean at the end). Translator mutants in `tools/cpu_switch_aot.py`, rebuilt each time: - killed: an unused CMP/TEST read is not performed (both new tests fail; first mismatch is a function that returns where native faults); - killed: `operand()` reads through `load` instead of `load_always`; - survives: the `bt m, reg` path reads through `load` instead of `load_always`. The generator only emits `bt m, imm`, which goes through `operand()`, so this path is not reached. Checker and generator mutants in `tools/fuzz_cpu.py`: - killed (7): status comparison dropped; return comparison dropped; default-only and `/O2`-only comparison; `fault_drops` check dropped; missing-needle guard off; controls dropped from the generator. - survive (9): buffer comparison dropped (`or diff is not None`); native-must-fault check dropped; native valid-pointer control dropped; each of the three `saw_valid` / `saw_noaccess_fault` / `saw_low_fault` end checks dropped; every mutant mismatch counted as a dropped fault; the mutant's buffer comparison dropped; the crash-retry condition in `_run_fault_probe_subprocess` replaced by `True`. None of the survivors is a wrong result today: they are guards in the checker that no test exercises. Leyukaka's comment review named the first three groups by reading; I confirm them by running. **Non-blocking notes.** 1. `bt m, reg` (and BTS/BTR/BTC on memory) has its own `load_always` call and is not generated here. One generated function with a register bit index would cover it. 2. The mocked cases in `tests/fuzz_cpu_fault_check.py` differ from the baseline only by status or return value. A case that differs only in the buffer, one where native does not fault on a bad pointer, and one with no valid pass would pin the nine surviving guards. 3. `docs/experiments.md` still says, in the fuzz section, that dead reads and fault equivalence remain follow-ups, and every other area has a paragraph there. A short paragraph with the seed, the counts, the probe set and the `ctest` command would bring it up to date. 4. The comment above the clean-source check in `verify_compiled_dlls` says the mutant's missing `volatile` is verified; only the clean translation is checked there. The mutant is covered indirectly by the dropped-fault count. The `pr` presets do not build or select the two new tests. That matches the other fuzz areas (only `cpu_aot_fuzz_smoke` is in the `pr` filter), so I don't count it against this PR. No title run: the change is tooling and tests only. Environment: Windows 11 25H2 build 26200.9974; MSVC 19.52.37029; Python 3.12.10. No GPU tests. CI: `Build and test on Windows` passed on `7f8935d4`. Approving. This reply was AI-assisted.
Author
Owner

@⁠JohnConnorNPC on GitHub · 2026-11-29 13:06 UTC · original

Independent review of head 7f8935d4 against main af1cab5c. Verdict: 0 MUST, 1 SHOULD, 1 NIT, merge. It was already merged as 94b679e7 while this review was being written, so the points below are follow-ups.

Checked

  • git merge-tree --write-tree origin/main 7f8935d4 exits 0. No commit on main since then touches tools/fuzz_cpu.py or the two new test files.
  • Only tools/fuzz_cpu.py and tests change. The translator is untouched, so no default runtime or translation path moves.
  • On the merged tree, python -B tests/fuzz_cpu_fault_check.py gives Ran 5 tests ... OK and exit 0 (Linux, pe-env). The Windows end-to-end part was not run here. pigalot's run on the same main covers it.
  • git diff --check is clean. No binaries and no trailers.

SHOULD

  1. Add the docs/experiments.md paragraph for the new area as a follow-up: seed, probe set, mutant result and the ctest command. Leyukaka raised this. The fuzz section still lists fault equivalence as to-do, and AGENTS.md asks for an update when a reproduction command changes.

NIT
2. The checker guards that no test reaches, which Leyukaka listed by reading and pigalot measured, reproduce here too. Scratch mutants of the merged export leave fuzz_cpu_fault_check.py green: dropping or diff is not None, passing when native does not fault, and dropping the "no valid-pointer pass" and "no PAGE_NOACCESS fault" end checks. None of these gives a wrong result today. A follow-up case for each would pin them.

AI-assisted review.

**@⁠JohnConnorNPC** on GitHub · 2026-11-29 13:06 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3338#issuecomment-7256290746) Independent review of head `7f8935d4` against `main` `af1cab5c`. Verdict: 0 MUST, 1 SHOULD, 1 NIT, merge. It was already merged as 94b679e7 while this review was being written, so the points below are follow-ups. **Checked** - `git merge-tree --write-tree origin/main 7f8935d4` exits 0. No commit on `main` since then touches `tools/fuzz_cpu.py` or the two new test files. - Only `tools/fuzz_cpu.py` and tests change. The translator is untouched, so no default runtime or translation path moves. - On the merged tree, `python -B tests/fuzz_cpu_fault_check.py` gives `Ran 5 tests ... OK` and exit 0 (Linux, pe-env). The Windows end-to-end part was not run here. pigalot's run on the same `main` covers it. - `git diff --check` is clean. No binaries and no trailers. **SHOULD** 1. Add the docs/experiments.md paragraph for the new area as a follow-up: seed, probe set, mutant result and the `ctest` command. Leyukaka raised this. The fuzz section still lists fault equivalence as to-do, and AGENTS.md asks for an update when a reproduction command changes. **NIT** 2. The checker guards that no test reaches, which Leyukaka listed by reading and pigalot measured, reproduce here too. Scratch mutants of the merged export leave `fuzz_cpu_fault_check.py` green: dropping `or diff is not None`, passing when native does not fault, and dropping the "no valid-pointer pass" and "no PAGE_NOACCESS fault" end checks. None of these gives a wrong result today. A follow-up case for each would pin them. AI-assisted review.
This discussion has been locked. Commenting is limited to contributors.
No description provided.