diff options
| author | Woody Lin <woodylin@google.com> | 2020-05-08 16:26:56 +0800 |
|---|---|---|
| committer | Woody Lin <woodylin@google.com> | 2020-05-11 14:50:27 +0000 |
| commit | 8fb6e3fdaf6bd965153024ed5bc06753f92dbbc8 (patch) | |
| tree | b155cf8b869663b94a2199abc1073b1795c8891b /base/errors_unix.cpp | |
| parent | c00d57d35383f4ab32547b6f53544c94ab19f052 (diff) | |
InitFatalReboot: Trigger panic explicitly for init_fatal_panic
The exit of init panics the system *after* process context (mm, stack,
...etc.) are recycled, according to Linux kernel's 'do_exit'
implementation. To preserve most init process context for debugging,
triggers the panic via proc-sysrq explicitly.
Note: after this change, there will be no "Attempt to kill init" panic
when androidboot.init_fatal_panic is set.
Test: Insert data abort fault in init, the full process context is
preserved in memory dump captured after panic.
Bug: 155940351
Change-Id: I3393bd00f99b8cb432cfa19a105b7d636b411764
(cherry picked from commit be1cf9006ab91e77114c19b8f596f8141d8e0b84)
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
