Skip to content
Commit e070aa86 authored by Alexander Potapenko's avatar Alexander Potapenko
Browse files

BootReceiver: collect kernel memory corruptions from dmesg



Production memory error detection tools (KFENCE and potentially MTE-based KASAN)
issue "error_report_end" tracing events that can be monitored via a
tracefs pipe.
We change BootReceiver to watch for such events and, when a memory error
is reported, collect and parse dmesg output to grab the error report and
copy it to Dropbox.

Test: manual runs with KFENCE enabled
Test: atest BootReceiverTest
Bug: 172316664

Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
Change-Id: Ib992fdb8c0f15ef69d020d978b64e25cda872ab9
parent 9676344a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment