From 8d4ab426054a7bc7a3e16819155356bdb746e413 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Mon, 11 Dec 2017 15:34:41 +0100 Subject: pkg/report: bad unlock balance can be a WARNING --- pkg/report/linux.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index a37104c2d..5f966c8db 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -637,6 +637,17 @@ var linuxOopses = []*oops{ fmt: "WARNING: kernel stack frame pointer has bad value", noStackTrace: true, }, + { + title: compile("WARNING: bad unlock balance detected!(?:.*\\n)+?.*{{PC}} +{{FUNC}}"), + report: compile("WARNING: bad unlock balance detected!(?:.*\\n){0,5}?.*is trying to release lock"), + fmt: "WARNING: bad unlock balance in %[1]v", + }, + { + // If we failed to extract function name where the fault happened, the report is most likely truncated. + title: compile("WARNING: bad unlock balance detected!"), + fmt: "WARNING: bad unlock balance", + corrupted: true, + }, }, []*regexp.Regexp{ compile("WARNING: /etc/ssh/moduli does not exist, using fixed modulus"), // printed by sshd -- cgit mrf-deployment