From bfa73b7bfb58dfb6a92b13840be3fee14c88e9ce Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 27 Jan 2026 15:17:21 +0100 Subject: pkg/report: extract whether kernel has panicked --- pkg/report/linux.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index e46a34a91..69e674836 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -155,6 +155,8 @@ func ctorLinux(cfg *config) (reporterImpl, []string, error) { const contextConsole = "console" +var linuxPanickedRe = regexp.MustCompile(`Kernel panic - not syncing`) + func (ctx *linux) ContainsCrash(output []byte) bool { return containsCrash(output, linuxOopses, ctx.ignores) } @@ -196,6 +198,7 @@ func (ctx *linux) Parse(output []byte) *Report { if !rep.Corrupted { rep.Corrupted, rep.CorruptedReason = isCorrupted(title, report, format) } + rep.Panicked = linuxPanickedRe.Match(output) if rep.CorruptedReason == corruptedNoFrames && context != contextConsole && !questionable { // We used to look at questionable frame with the following incentive: // """ -- cgit mrf-deployment