Commit d92fc14
[462][Backport] Security bug 424905890
Manual cherry-pick of patch originally reviewed on
https://chromium-review.googlesource.com/c/v8/v8/+/6668536:
Disable code compaction with stack
Since fast api calls can now also call back to JS there can be
multiple active fast c calls at the same time. This means just
checking Isolate::InFastCCall() is not enough anymore because this
only returns the state of the last CEntry frame.
This CL therefore disables code space compaction when a stack is
present to allow for multiple/nested fast C calls. Alternatively
we could also just e.g. pin code objects referenced from the stack but
this would require a bit more work.
Bug: 424905890
Change-Id: I2798e77bb2534253a1dc4b0079cdfa8e5d3bcac1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6668536
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#101043}
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/665063
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>1 parent a607634 commit d92fc14
File tree
3 files changed
+5
-16
lines changed- chromium/v8/src
- execution
- flags
- heap
3 files changed
+5
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
852 | | - | |
853 | | - | |
854 | | - | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | 591 | | |
595 | 592 | | |
596 | 593 | | |
| |||
2182 | 2179 | | |
2183 | 2180 | | |
2184 | 2181 | | |
2185 | | - | |
2186 | | - | |
2187 | | - | |
2188 | | - | |
2189 | | - | |
2190 | | - | |
2191 | 2182 | | |
2192 | 2183 | | |
2193 | 2184 | | |
| |||
2919 | 2910 | | |
2920 | 2911 | | |
2921 | 2912 | | |
2922 | | - | |
2923 | 2913 | | |
2924 | 2914 | | |
2925 | 2915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
4904 | 4904 | | |
4905 | 4905 | | |
4906 | 4906 | | |
4907 | | - | |
4908 | | - | |
| 4907 | + | |
4909 | 4908 | | |
4910 | 4909 | | |
4911 | 4910 | | |
| |||
0 commit comments