[sandbox] Sandboxify Foreign external pointer

Bug: v8:10391
Change-Id: I4c5c209454db316fe86f379f6b2e6dfc7ba7754e
Cq-Include-Trybots: luci.v8.try:v8_linux64_heap_sandbox_dbg_ng,v8_linux_arm64_sim_heap_sandbox_dbg_ng
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3757340
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Samuel Groß <saelo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81703}
This commit is contained in:
Samuel Groß 2022-07-12 11:45:24 +02:00 committed by V8 LUCI CQ
parent 4dee3fbd37
commit 543b54da66

View File

@ -327,7 +327,7 @@ constexpr uint64_t kExternalPointerTagShift = 48;
// These tags must have 8 zeros and 8 ones, see comment above.
// New entries should be added with state "sandboxed".
#define EXTERNAL_POINTER_TAGS(V) \
V(kForeignForeignAddressTag, unsandboxed, 0b1000000001111111) \
V(kForeignForeignAddressTag, sandboxed, 0b1000000001111111) \
V(kNativeContextMicrotaskQueueTag, unsandboxed, 0b1000000010111111) \
V(kEmbedderDataSlotPayloadTag, unsandboxed, 0b1000000011011111) \
V(kCodeEntryPointTag, unsandboxed, 0b1000000011110111) \