tooling: add stack_args differential fuzz area #3655
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!3655
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3653"
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?
@Ammmae0x on GitHub · 2026-11-30 21:43 UTC · original
Ammmae0x:tooling/fuzz-cpu-stack-args→main· +1092 −2 · 5 files · 1 commits · merged 2026-12-01 01:17 UTCRefs #446
Adds
--area stack_argstotools/fuzz_cpu.py: internal callees taking 5th-8th stack arguments ([rsp+20h]..[rsp+38h]) in 8/16/32/64-bit widths, with single/pair/cond/fwd/rec caller recipes, two refusal controls and a stack-slot-swapping mutant.tools/fuzz_cpu.pychanges among tracked files; newtests/cmake/cpu_fuzz_stack_args.cmake(targetscpu_fuzz_stack_args,cpu_fuzz_stack_args_lifted,cpu_fuzz_stack_args_o2, testcpu_aot_fuzz_stack_args),tests/fuzz_cpu_stack_args_check.py+tests/checks/python-linux/fuzz_cpu_stack_args.txt, anddocs/experiments/cpu-aot-fuzz-stack-args.md.Linux (Python 3.12.3 in /tmp/pe-env):
tests/fuzz_cpu_stack_args_check.py: 10 tests, OK.tests/form_coverage_check.py,tests/docs_links_check.py(193 files, 749 links),tests/bidi_controls_check.py(2762 files): pass.[rsp+40h]collided with the saved-RDI slot, so pair callers now save R12 and subtract 48h.Note: in this clone
originis R0Y00/Xbox2Windows and the fork is remotefork(Ammmae0x/Xbox2Windows), so the branch was pushed to the fork.Windows ML64/cl execution awaits verification.
Windows Verification (
603fd189)AI-assisted.
@R0Y00 on GitHub · 2026-12-01 01:16 UTC · original · approved these changes
Reviewed the source-built stack-argument fuzz area. The fixtures distinguish arguments five through eight across operand widths and compare generated code with the original MASM fixture.
ctest --test-dir <build> --no-tests=error -j1 -R '^(cpu_aot_fuzz_stack_args|tooling_fuzz_cpu_stack_args_check)$' --output-on-failurepassed on Windows with MSVC, including the /O2 stack-slot-swap control.