Use-64-bit-WebView-processes.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From: Daniel Micay <danielmicay@gmail.com>
  2. Date: Thu, 26 Jan 2017 01:30:12 -0500
  3. Subject: Use 64-bit WebView processes
  4. 64-bit processes introduce 10% or so higher memory consumption.
  5. The reason for preferring 64-bit processes is providing substantially better
  6. exploit mitigations at the expense of slightly more memory usage.
  7. In addition to the standard mitigations, it also enables usage of
  8. https://github.com/AndroidHardening/hardened_malloc (where available).
  9. It will provide high entropy ASLR (24-bit to 32-bit depending on whether the
  10. kernel uses 3 or 4 level page tables rather than 16-bit for 32-bit processes),
  11. high entropy stack canaries (56/64-bit instead of 24/32-bit depending on
  12. whether a zero byte is used) and also features like pointer authentication and
  13. memory tagging when those are made available in the future.
  14. The reason why upstream started preferring 32-bit processes is to save memory,
  15. particularly since saving memory makes it feasible to use finer-grained
  16. sandboxing.
  17. ---
  18. android_webview/apk/java/AndroidManifest.xml | 1 -
  19. 1 file changed, 1 deletion(-)
  20. diff --git a/android_webview/apk/java/AndroidManifest.xml b/android_webview/apk/java/AndroidManifest.xml
  21. --- a/android_webview/apk/java/AndroidManifest.xml
  22. +++ b/android_webview/apk/java/AndroidManifest.xml
  23. @@ -25,7 +25,6 @@
  24. android:icon="@{{manifest_package|default('com.android.webview')}}:drawable/icon_webview"
  25. android:name="{{ application_name|default('com.android.webview.chromium.WebViewApplication') }}"
  26. android:multiArch="true"
  27. - android:use32bitAbi="true"
  28. android:extractNativeLibs="{{ trichrome_library is not defined }}">
  29. {# This part is shared between stand-alone WebView and Monochrome #}
  30. {% macro common(manifest_package, webview_lib) %}
  31. --
  32. 2.11.0