-
Clemens Backes authored
If PKU is used, we just called {pkey_mprotect} and called it a day, whereas {PageAllocator::SetPermissions} also discards the system pages when switching to {kNoAccess} (both in {OS::SetPermissions}, which is used by the default platform, as well as the GIN platform used in Chrome). In order to avoid memory regressions when using PKU, this CL changes the PKU implementation to behave like the POSIX {OS::SetPermissions} function and also discard system pages when removing all access. R=jkummerow@chromium.org Bug: v8:11974 Change-Id: I35f9c436925c1500e5884db1caf620c975586f7e Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3424496Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/main@{#78874}
a8af6a86