Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a55b977c authored by Alexander Potapenko's avatar Alexander Potapenko Committed by Automerger Merge Worker
Browse files

Merge "Restrict creation of bootreceiver tracing instance to 64-bit systems."...

Merge "Restrict creation of bootreceiver tracing instance to 64-bit systems." am: 6e3f64e7 am: 1ed2ffba

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1783608

Change-Id: I8950df52018e3c5005a1c272ddc700658d872c16
parents 3779f10f 1ed2ffba
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -591,9 +591,10 @@ on late-fs
    # Load trusted keys from dm-verity protected partitions
    exec -- /system/bin/fsverity_init --load-verified-keys

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