Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport] CVE-2025-0291: Type Confusion in V8 (2/2)
Cherry-pick of patch originally reviewed on https://chromium-review.googlesource.com/c/v8/v8/+/6097772: Merged: [turboshaft][wasm] WasmGCTypeAnalyzer: Fix single-block loops properly While https://crrev.com/c/6087921 fixed a bug where the type in the loop header revisit was reflecting "older" knowledge, it didn't address the general issue of loop phis dependencies in single block loops where it might require many iterations until all type information has stabilized. The fix linked above also introduce too specific DCHECKs, as even outside of single-block loops we can end up with phis where a phi input appears in the same block before the phi itself. The binaryen fuzzer found the following pattern: v113 = Phi(v26, v113) v114 = Phi(v26, v113) In follow-up changes it should be ensured that the useless phi v113 doesn't get emitted, then v114 wouldn't have that issue (and it could also be removed.) (cherry picked from commit c84e01e92bfd61d29541c59e378b9a15ba6fc891) Fixed: 383356864 Bug: 383814042 Change-Id: I222dc493bf0a2613d14ebb7df2bdeca931c8daa6 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6097772 Auto-Submit: Jakob Kummerow <[email protected]> Commit-Queue: Eva Herencsárová <[email protected]> Reviewed-by: Eva Herencsárová <[email protected]> Commit-Queue: Jakob Kummerow <[email protected]> Cr-Commit-Position: refs/branch-heads/13.0@{#47} Cr-Branched-From: 4be854bd71ea878a25b236a27afcecffa2e29360-refs/heads/13.0.245@{#1} Cr-Branched-From: 1f5183f7ad6cca21029fd60653d075730c644432-refs/heads/main@{#96103} Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/615723 Reviewed-by: Anu Aliyas <[email protected]>
- Loading branch information