Repository navigation
[v8] Add Maglev type-confusion/differential fuzzing and VRP workflow - #563
Closed
srinivasreddy wants to merge 3 commits into
Closed
srinivasreddy wants to merge 3 commits into
srinivasreddy wants to merge 3 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.
Add Tools/v8-vrp-campaign.sh for long crash and Maglev differential campaigns with metadata, logs, ASan support, resume, and clearly separated fault-injection canaries. Add Tools/v8-vrp-triage.py to reproduce stored crashes/differentials from their recorded target arguments, check determinism, run ASan, flag injected-fault artifacts, and emit Markdown/JSON reports. Add the Maglev Phi fault-injection V8 patch, flag, profile and dedicated deterministic template, plus Docs/V8VRPWorkflow.md and target documentation. Fault-injection crashes are explicitly excluded from VRP findings.
Author
|
Added the heap-sandbox/SbxBrk-style workflow in
Hardware note: this host exposes no |
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.
Supersedes #562 (closed while the head fork was recreated; that PR is pinned to an older commit).
Summary
MaglevTypeConfusionFuzzer: elements-kind, map/field-representation, typed-array, binary feedback, call/inlining and loop/Phi assumption invalidation.gc()observation and printed digests.--no-maglev --no-turbofan) with reference-timeout handling and thev8Maglevprofile.IteratorHelpersFuzzerfor iterator helper chains includingchunks()/windows().VRP workflow
Tools/v8-vrp-campaign.sh: longv8crash andv8Maglevdifferential campaigns, revision/hash metadata, logs, ASan campaign, resume, and an explicitly separated fault-injection canary.Tools/v8-vrp-triage.py: reproduces stored artifacts from their recordedTARGET ARGS/ARGS/REFERENCE ARGS, checks determinism, optionally runs ASan, marks injected-fault candidates, and emits Markdown/JSON reports.Docs/V8VRPWorkflow.md: builds, campaigns, triage, false-positive handling, security assessment, and VRP reporting.Fault injection (canary only, not a VRP finding)
Targets/V8/Patches/maglev-fault-injection.patchadds--maglev-fuzz-drop-heapobject-check, which drops HeapObjectness inConvertTaggedPhiTo, corrupts a converted Phi input, and removes the followingCheckHeapObject.MaglevPhiHeapObjectnessFaultFuzzerandv8MaglevFaultInjectionprofile. Against a patched d8 it produced 4 deterministic crashes; triage labeled all 4 as injected, with 0 non-injected findings.Testing
swift buildandswift build -c release --product FuzzilliCli: passDiffExecutionTests: 7/7ProfileTests: passMaglevTypeConfusionconstruction + live tests: passMaglevPhiHeapObjectnessFaultTemplate: passv8MaglevCLI run: 0 confirmed differentials--help, short campaign, fault and synthetic differential triage