Disable page permission flipping of code pages

Code protection based on page permission flipping is inherently unsafe since it does not prevent concurrent modification of unprotected pages. It also comes with a significant performance cost. Going forward we will rely on per-thread page permission mechanisms (e.g. PKEYS) to protect code memory.

Change-Id: I28e15899cd6316fbe146f3725b9e0c81a668e1dd
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4156051
Commit-Queue: Hannes Payer <hpayer@chromium.org>
Reviewed-by: Samuel Groß <saelo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#85224}
This commit is contained in:
Hannes Payer 2023-01-11 14:30:25 +01:00 committed by V8 LUCI CQ
parent b77e704a74
commit 32f82d0f48

View File

@ -1377,7 +1377,7 @@ DEFINE_IMPLICATION(cppgc_young_generation, minor_mc)
// Unified young generation disables the unmodified wrapper reclamation
// optimization.
DEFINE_NEG_IMPLICATION(cppgc_young_generation, reclaim_unmodified_wrappers)
DEFINE_BOOL(write_protect_code_memory, true, "write protect code memory")
DEFINE_BOOL(write_protect_code_memory, false, "write protect code memory")
#if defined(V8_ATOMIC_OBJECT_FIELD_WRITES)
DEFINE_BOOL(concurrent_marking, true, "use concurrent marking")
#else