Files
cromite/build/patches/Use-64-bit-WebView-processes.patch
T
2023-03-30 14:32:09 +02:00

45 lines
2.2 KiB
Diff

From: Daniel Micay <danielmicay@gmail.com>
Date: Thu, 26 Jan 2017 01:30:12 -0500
Subject: Use 64-bit WebView processes
64-bit processes introduce 10% or so higher memory consumption.
The reason for preferring 64-bit processes is providing substantially better
exploit mitigations at the expense of slightly more memory usage.
In addition to the standard mitigations, it also enables usage of
https://github.com/AndroidHardening/hardened_malloc (where available).
It will provide high entropy ASLR (24-bit to 32-bit depending on whether the
kernel uses 3 or 4 level page tables rather than 16-bit for 32-bit processes),
high entropy stack canaries (56/64-bit instead of 24/32-bit depending on
whether a zero byte is used) and also features like pointer authentication and
memory tagging when those are made available in the future.
The reason why upstream started preferring 32-bit processes is to save memory,
particularly since saving memory makes it feasible to use finer-grained
sandboxing.
Original License: MIT - https://spdx.org/licenses/MIT.html
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
---
android_webview/nonembedded/java/AndroidManifest.xml | 2 --
1 file changed, 2 deletions(-)
diff --git a/android_webview/nonembedded/java/AndroidManifest.xml b/android_webview/nonembedded/java/AndroidManifest.xml
--- a/android_webview/nonembedded/java/AndroidManifest.xml
+++ b/android_webview/nonembedded/java/AndroidManifest.xml
@@ -43,11 +43,9 @@ by a child template that "extends" this file.
android:name="{{ application_name|default('org.chromium.android_webview.nonembedded.WebViewApkApplication') }}"
android:multiArch="true"
{% if force_32_bit is defined and force_32_bit == 'true' %}
- android:use32bitAbi="true"
{% endif %}
{# TODO(crbug.com/1411557): Remove #}
{% if force_32_bit is not defined %}
- {{ use32bitAbi|default('android:use32bitAbi="true"') }}
{% endif %}
android:extractNativeLibs="false">
{# This part is shared between stand-alone WebView and Monochrome #}
--
2.25.1