Skip to content

Commit b0cd5f8

Browse files
TreeHugger RobotAndroid (Google) Code Review
authored andcommitted
Merge "Restrict creation of bootreceiver tracing instance to 64-bit systems." into sc-qpr1-dev
2 parents e69aea9 + b5f93df commit b0cd5f8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rootdir/init.rc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,10 @@ on late-fs
590590
# Load trusted keys from dm-verity protected partitions
591591
exec -- /system/bin/fsverity_init --load-verified-keys
592592

593+
on late-fs && property:ro.product.cpu.abilist64=*
593594
# Set up a tracing instance for system_server to monitor error_report_end events.
594595
# These are sent by kernel tools like KASAN and KFENCE when a memory corruption
595-
# is detected.
596+
# is detected. This is only needed for 64-bit systems.
596597
mkdir /sys/kernel/tracing/instances/bootreceiver 0700 system system
597598
restorecon_recursive /sys/kernel/tracing/instances/bootreceiver
598599
write /sys/kernel/tracing/instances/bootreceiver/buffer_size_kb 1

0 commit comments

Comments
 (0)