From 2ccf0adec3e674aae4c144c7357b3668e4266341 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 30 Dec 2018 09:39:28 +0100 Subject: pkg/report: parse linux stack corruption reports --- pkg/report/linux.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 19a312f9b..76a090195 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -1187,6 +1187,26 @@ var linuxOopses = []*oops{ { []byte("Kernel panic"), []oopsFormat{ + // Note: for stack corruption reports kernel may fail + // to print function symbol name and/or unwind stack. + { + title: compile("Kernel panic - not syncing: stack-protector:"), + report: compile("Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: {{FUNC}}"), + fmt: "kernel panic: stack is corrupted in %[1]v", + noStackTrace: true, + }, + { + title: compile("Kernel panic - not syncing: stack-protector:"), + report: compile("Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: [a-f0-9]+"), + fmt: "kernel panic: stack is corrupted in %[1]v", + stack: &stackFmt{ + parts: []*regexp.Regexp{ + compile("Call Trace:"), + parseStackTrace, + }, + skip: []string{"stack_chk"}, + }, + }, { title: compile("Kernel panic - not syncing: Attempted to kill init!"), fmt: "kernel panic: Attempted to kill init!", -- cgit mrf-deployment