summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2020-06-21 21:50:34 +0530
committerAmit Pundir <amit.pundir@linaro.org>2020-06-21 21:58:18 +0530
commit66c35f4033dca6be9fd762a2175c97d074635c5b (patch)
tree7c7851a7cc169534bd745418ddb4b27da17414fe
parentfd7bfa1fa7e894acae9fdad0acd4591835d4c594 (diff)
init.common.rc: Set /sys/kernel/debug/tracing permissions
CONFIG_DEBUG_FS is enabled in android-mainline kernel, https://android-review.googlesource.com/c/1324220, but /sys/kernel/debug/tracing permissions are not getting set in system/core/rootdir/init.rc's existing "on late-fs" trigger, which resulted in webview crash on db845c. F webview_zygote: jni_internal.cc:649] JNI FatalError called: (zygote) \ Failed open(/sys/kernel/debug/tracing/trace_marker, 1): Permission denied ----->8-----snip-----8<----- F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr -------- F DEBUG   : Abort message: 'JNI FatalError called: (zygote) Failed open(/sys/kernel/debug/tracing/trace_marker, 1): Permission denied' This webview crash can be reproduced with stock AOSP webview version "74.0.3729.186", as well as version "85.0.4150.0" built locally. Here is a temporary workaround to set the permissions on boot completion, while we debug it further. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I177cf8e833d9548a11363a3b89bbdae9c594039a
-rw-r--r--init.common.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.common.rc b/init.common.rc
index 2ce8b0a..247a161 100644
--- a/init.common.rc
+++ b/init.common.rc
@@ -35,6 +35,8 @@ on zygote-start
mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi
on property:sys.boot_completed=1
+ chmod 0755 /sys/kernel/debug/tracing
+
# update cpuset now that processors are up
# Foreground should contain most cores (7 is reserved for top-app)
write /dev/cpuset/foreground/cpus 0-6