v8/test
Georgia Kouveli 137bfe47c9 [arm64] Protect return addresses stored on stack
This change uses the Arm v8.3 pointer authentication instructions in
order to protect return addresses stored on the stack.  The generated
code signs the return address before storing on the stack and
authenticates it after loading it. This also changes the stack frame
iterator in order to authenticate stored return addresses and re-sign
them when needed, as well as the deoptimizer in order to sign saved
return addresses when creating new frames. This offers a level of
protection against ROP attacks.

This functionality is enabled with the v8_control_flow_integrity flag
that this CL introduces.

The code size effect of this change is small for Octane (up to 2% in
some cases but mostly much lower) and negligible for larger benchmarks,
however code size measurements are rather noisy. The performance impact
on current cores (where the instructions are NOPs) is single digit,
around 1-2% for ARES-6 and Octane, and tends to be smaller for big
cores than for little cores.

Bug: v8:10026
Change-Id: I0081f3938c56e2f24d8227e4640032749f4f8368
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1373782
Commit-Queue: Georgia Kouveli <georgia.kouveli@arm.com>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66239}
2020-02-12 13:59:44 +00:00
..
benchmarks
cctest [arm64] Protect return addresses stored on stack 2020-02-12 13:59:44 +00:00
common [wasm] Add missing type enum in switch statement and remove default 2020-01-24 10:36:01 +00:00
debugger [wasm] Skip test in multiple isolates 2020-02-09 07:50:01 +00:00
fuzzer [wasm] Extend fuzzer to test AtomicExchange and AtomicCompareExchange 2020-02-05 09:01:58 +00:00
inspector [wasm] Always use new Liftoff code in debugging mode 2020-02-05 10:35:58 +00:00
intl Revert "Fix SEGMAP_ERR by rolling ICU?" 2020-02-06 08:16:26 +00:00
js-perf-test [cleanup][test] Fix typo in js-perf-test/Scope/with.js 2020-02-12 10:59:54 +00:00
memory
message Reland "[weakrefs] Schedule FinalizationGroup cleanup tasks from within V8" 2020-02-10 21:56:34 +00:00
mjsunit Add test skips for deopt_fuzzer 2020-02-12 08:41:54 +00:00
mkgrokdump
mozilla Remove and update some outdated TODO(mstarzinger). 2019-12-13 10:18:04 +00:00
test262 [Intl] Change order of "currency" and "unit" validation. 2020-01-31 20:31:05 +00:00
torque [torque] use iterators and constructors for ExtractFixedArray 2020-01-16 13:51:04 +00:00
unittests [torque] Support bitfield structs stored within Smis 2020-02-07 18:43:06 +00:00
wasm-api-tests
wasm-js [wasm] Update spec tests 2020-02-05 15:42:51 +00:00
wasm-spec-tests [wasm] Update spec tests 2020-02-05 15:42:51 +00:00
webkit [class] Improve error message for calling anonymous class constructors 2019-12-05 21:13:07 +00:00
BUILD.gn
OWNERS