[snapshot][sandbox] Split startup snapshot in trusted/untrusted sections The startup deserializer runs while JavaScript can run, therefore a concurrent sandbox attacker could change the map of newly allocated objects and desync the stream. StartupSerializer now writes all roots, the startup object cache, and the deduplicated external-reference check through its TrustedSectionSerializer. SharedHeapSerializer similarly routes its object cache and string table through its TrustedSectionSerializer so all root-slot deserialization runs in the trusted section. This also hardens ReadRootArray and ReadStartupObjectCache against returning out-of-sandbox (or Smi) objects in untrusted sections across all split deserializers (including context snapshots and code caches), and replaces the PostProcessNewObject Code check with SBXCHECK(InTrustedSection()) + TrustedCast<Code>. TAG=agy Bug: 564863360 Fixed: 590787327 Change-Id: Ib4b36ab816782248168e90ec1528d5d95ee4704f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8676839 Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: Arash Kazemi <arashk@chromium.org> Cr-Commit-Position: refs/heads/main@{#112704}
V8 is Google's open source JavaScript engine.
V8 implements ECMAScript as specified in ECMA-262.
V8 is written in C++ and is used in Chromium, the open source browser from Google.
V8 can run standalone, or can be embedded into any C++ application.
V8 Project page: https://v8.dev/docs
Checkout depot tools, and run
fetch v8
This will checkout V8 into the directory v8 and fetch all of its dependencies. To stay up to date, run
git pull origin
gclient sync
For fetching all branches, add the following into your remote configuration in .git/config:
fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*
fetch = +refs/tags/*:refs/tags/*
Please follow the instructions mentioned at v8.dev/docs/contribute.