Repository navigation
[v8] Add Maglev type-confusion and differential fuzzing - #562
Closed
srinivasreddy wants to merge 2 commits into
Closed
srinivasreddy wants to merge 2 commits into
srinivasreddy wants to merge 2 commits into
Conversation
Add MaglevTypeConfusionFuzzer, targeting elements-kind, map and field-representation, typed-array, binary feedback, call/inlining and loop/Phi assumptions. Includes C1.1-shaped variants for value-equal HeapNumber/Smi checks, mixed-representation Phis, backedge-only representation changes and inlined Smi proofs, with explicit gc() observation and output digests. Add output-based differential fuzzing (Maglev vs. --no-maglev --no-turbofan) with reference-timeout handling, plus the v8Maglev differential profile, determinism shim, periodic GC and focused code generators. Also add IteratorHelpersFuzzer and unit/live tests for the oracle, profile, templates and differential execution.
Address review feedback: add staging flags to the Maglev template live test; age the value-equal HeapNumber target into old space before the store; feed the Phi result into a HeapObject consumer for the 486657483 shape; lengthen the backedge trigger loop and warm the callee for inlining; guard the reference runner, preserve crash outcomes, treat both-failed runs as non-differential and mark reference timeouts; extend the determinism shim with performance.now.
Author
|
Review follow-up pushed in Fixed:
Notes on three flagged items:
Tests after the fixes: |
Author
|
Added the end-to-end VRP workflow in New tools and docs:
Fault-injection layer (clearly not a VRP finding):
Usage: Tools/v8-vrp-campaign.sh --d8 <fuzzbuild/d8> --asan-d8 <asan/d8> --jobs 8 --duration 2h --out /tmp/v8-vrp
Tools/v8-vrp-triage.py /tmp/v8-vrp/storage/v8 --d8 <fuzzbuild/d8> --asan-d8 <asan/d8> --out /tmp/v8-vrp/triage-v8Checklist for reported candidates: no |
Author
|
Superseded by #563, which is based on the current public fork branch and includes the VRP campaign/triage workflow plus the Maglev fault-injection layer ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Maglev-focused program template and an output-based differential oracle.
gc()observation and printed digests.--no-maglev --no-turbofan, with reference-timeout handling, plus thev8Maglevprofile (determinism shim, periodic GC, focused code generators).chunks()/windows().Testing
swift buildandswift build -c release --product FuzzilliCli: passswift test --filter DiffExecutionTests: 6/6 passswift test --filter MaglevDifferential: live 25 program pairs, 0 false differentialsswift test --filter MaglevTypeConfusion: construction + live passv8MaglevCLI run: startup passed, HybridEngine reached, 0 confirmed differentials, 0 crashes