v8/test/cctest/wasm
Samuel Groß 5c152a0f7b [sandbox] Remove a number of native allocations from WasmInstanceObject
Those are not safe in combination with the sandbox as they are stored as
raw pointers. Instead of turning them into ExternalPointers (which use
the ExternalPointerTable indirection), this CL simply turns them into
on-heap ByteArrays which is cheaper and should be unproblematic
security-wise as their contents can be corrupted without causing memory
corruption outside the sandbox address space (just incorrect behaviour
and/or further memory corruption *inside* the sandbox, which is fine).

Bug: chromium:1335046
Change-Id: Id2b901a58b7d6c91dd7596fca553d7c76cbc61ec
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/+/3845636
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Samuel Groß <saelo@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82765}
2022-08-29 09:53:35 +00:00
..
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
test-backing-store.cc [wasm] Do not allocate guard regions for memory64 2022-07-28 14:41:45 +00:00
test-c-wasm-entry.cc [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
test-compilation-cache.cc [wasm] Disable lazy compilation in tests 2022-08-08 11:10:41 +00:00
test-gc.cc [wasm-gc] Rename array.new_fixed_static -> array.new_fixed 2022-08-26 13:11:38 +00:00
test-grow-memory.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-jump-table-assembler.cc Reland "[riscv32] Add RISCV32 backend" 2022-08-04 12:47:44 +00:00
test-liftoff-for-fuzzing.cc Reland "[wasm] Add tests for NaN detection in Liftoff" 2021-09-14 08:41:58 +00:00
test-liftoff-inspection.cc [wasm-gc] Introduce separate constructors for ref and (ref null) 2022-07-01 13:43:58 +00:00
test-run-wasm-64.cc [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
test-run-wasm-asmjs.cc [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
test-run-wasm-atomics64.cc [maglev] Generic binary operations 2022-03-14 14:39:06 +00:00
test-run-wasm-atomics.cc [wasm-atomics] Use traps for rest of atomic operations OOB handling 2022-07-01 19:51:50 +00:00
test-run-wasm-bulk-memory.cc [wasm-gc] Add Table<any|eq|data|array> 2022-08-23 07:38:49 +00:00
test-run-wasm-exceptions.cc [wasm] Use isorecursive canonical types for call_indirect 2022-07-29 08:55:49 +00:00
test-run-wasm-interpreter.cc [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
test-run-wasm-js.cc [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
test-run-wasm-memory64.cc [wasm] Disable trap handling for memory64 2021-07-08 11:03:08 +00:00
test-run-wasm-module.cc [wasm] Disable lazy compilation in tests 2022-08-08 11:10:41 +00:00
test-run-wasm-relaxed-simd.cc [wasm-relaxed-simd] Enable i16x8.relaxed_q15mulr_s liftoff on x64/ia32 2022-08-19 16:16:22 +00:00
test-run-wasm-sign-extension.cc [test][cleanup] Rename WASM_*_LOCAL to WASM_LOCAL_* 2020-12-17 21:19:14 +00:00
test-run-wasm-simd-liftoff.cc [wasm] Do not enforce LE for globals and WasmValue 2021-06-10 18:08:38 +00:00
test-run-wasm-simd.cc [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
test-run-wasm-wrappers.cc [wasm-gc] Add Table<any|eq|data|array> 2022-08-23 07:38:49 +00:00
test-run-wasm.cc [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
test-streaming-compilation.cc [wasm] Fix test condition for lazy compilation 2022-08-03 15:34:14 +00:00
test-wasm-breakpoints.cc [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
test-wasm-codegen.cc [zone] Cleanup zone allocations in src/wasm and tests 2020-07-10 12:11:55 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Move Suspender functions to WebAssembly 2022-07-11 14:52:43 +00:00
test-wasm-metrics.cc [wasm] Disable lazy compilation in tests 2022-08-08 11:10:41 +00:00
test-wasm-serialization.cc [wasm] Enable dynamic tiering in serialization tests 2022-05-31 11:11:17 +00:00
test-wasm-shared-engine.cc [isolate][cleanup] Remove pointer to WasmEngine 2021-06-21 09:09:25 +00:00
test-wasm-stack.cc [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
test-wasm-strings.cc [stringrefs] Add generalized UTF-8 decoder / validator 2022-05-20 08:05:04 +00:00
test-wasm-trap-position.cc [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
wasm-atomics-utils.h [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
wasm-run-utils.cc [sandbox] Remove a number of native allocations from WasmInstanceObject 2022-08-29 09:53:35 +00:00
wasm-run-utils.h [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
wasm-simd-utils.cc [test] Migrate cctest/compiler/test-codegen to unittests/ 2022-08-22 17:28:27 +00:00
wasm-simd-utils.h [wasm-relaxed-simd][x64] Prototype relaxed min and max 2021-10-21 00:58:24 +00:00