Skip to content

Commit

Permalink
unconditionally show KASAN kernel crash notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
muhomorr authored and thestinger committed Jan 18, 2025
1 parent 2d4ae1e commit db009aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions services/core/java/com/android/server/ext/DropBoxMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,12 @@ void handleKernelCrash(DropBoxManager.Entry e) {
}
}

if (ExtSettings.SHOW_SYSTEM_PROCESS_CRASH_NOTIFICATIONS.get(context)) {
showCrashNotif(e, "Kernel", String.join("\n", lines), false);
// see https://github.com/GrapheneOS/kernel_common-6.1/blob/2025011500/mm/kasan/report.c#L210
boolean isKasanReport = text.contains("BUG: KASAN: ");

if (isKasanReport || ExtSettings.SHOW_SYSTEM_PROCESS_CRASH_NOTIFICATIONS.get(context)) {
boolean showReportButton = isKasanReport;
showCrashNotif(e, "Kernel", String.join("\n", lines), showReportButton);
}
}
}
Expand Down

0 comments on commit db009aa

Please sign in to comment.