v8/test/unittests/base
Samuel Groß 6e06d756b7 [sandbox] Disallow executable pages inside the sandbox
These should not be allowed inside the sandbox as they could be
corrupted by an attacker, thus posing a security risk. Furthermore,
executable pages require MAP_JIT on macOS, which causes fork() to become
excessively slow, in turn causing tests to time out.
Due to this, the sandbox now requires the external code space.

In addition, this CL adds a max_page_permissions member to the
VirtualAddressSpace API to make it possible to verify the maximum
permissions of a subspace.

Bug: v8:10391
Change-Id: Ib9562ecff6f018696bfa25143113d8583d1ec6cd
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/+/3460406
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Samuel Groß <saelo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79119}
2022-02-16 09:48:29 +00:00
..
platform [base] Remove TimeTicks::HighResolutionNow 2022-02-04 13:27:14 +00:00
utils Fix v8 unittests broken on official builds by recent crash logging changes 2021-07-05 07:38:47 +00:00
address-region-unittest.cc Fix -Wc++11-narrowing in V8. 2021-06-09 22:47:37 +00:00
atomic-utils-unittest.cc Reland "[d8] Remove maximum workers limitation" 2019-07-30 07:56:17 +00:00
bits-unittest.cc Fix CountPopulation non-builtin implementation 2020-05-14 14:24:13 +00:00
cpu-unittest.cc [ia32][x64] Detect AVX2 2020-12-17 05:44:54 +00:00
division-by-constant-unittest.cc [cleanup][test] Remove redundant NOLINT annotations 2021-04-30 11:46:14 +00:00
flags-unittest.cc [cleanup] Replace simple typedefs by using 2019-05-27 12:39:49 +00:00
functional-unittest.cc [cleanup] Remove DISALLOW_COPY_AND_ASSIGN in test/{common,unittests} 2020-11-06 06:07:54 +00:00
ieee754-unittest.cc [ubsan] Fix various cases of undefined behavior 2019-01-10 13:52:04 +00:00
iterator-unittest.cc Improve iterator_range to take non-&& arguments 2020-01-28 13:03:43 +00:00
logging-unittest.cc Fix v8 unittests broken on official builds by recent crash logging changes 2021-07-05 07:38:47 +00:00
macros-unittest.cc Account for different interpretations of "trivially copyable" 2018-03-02 15:45:14 +00:00
ostreams-unittest.cc Move utility code to src/utils 2019-05-23 14:13:34 +00:00
region-allocator-unittest.cc Introduce v8_enable_virtual_memory_cage 2021-08-11 16:13:42 +00:00
sys-info-unittest.cc Remove NaCl support. 2016-07-27 07:50:31 +00:00
template-utils-unittest.cc Replace base::make_unique by std::make_unique 2019-09-10 11:21:51 +00:00
threaded-list-unittest.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
vector-unittest.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
virtual-address-space-unittest.cc [sandbox] Disallow executable pages inside the sandbox 2022-02-16 09:48:29 +00:00
vlq-base64-unittest.cc Add Base64 VLQ decoding support 2019-07-16 16:16:24 +00:00
vlq-unittest.cc [sparkplug][cleanup] Add helper to en-/decode VLQ. 2021-02-25 15:05:01 +00:00