From 3d741171f29921671c3c8da59f00911b4ee3bb23 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 13 Jul 2018 10:31:26 +0200 Subject: pkg/report: add "lock held when returning to user space" format for older kernels --- pkg/report/linux.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index c8e8dc523..30f2770b1 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -693,6 +693,12 @@ var linuxOopses = []*oops{ report: compile("BUG: .*still has locks held!(?:.*\\n)+?.*{{PC}} +{{FUNC}}"), fmt: "BUG: still has locks held in %[1]v", }, + { + title: compile("BUG: lock held when returning to user space"), + report: compile("BUG: lock held when returning to user space(?:.*\\n)+?.*leaving the kernel with locks still held(?:.*\\n)+?.*at: (?:{{PC}} +)?{{FUNC}}"), + fmt: "BUG: lock held when returning to user space in %[1]v", + noStackTrace: true, + }, { title: compile("BUG: bad unlock balance detected!"), report: compile("BUG: bad unlock balance detected!(?:.*\\n){0,15}?.*is trying to release lock(?:.*\\n){0,15}?.*{{PC}} +{{FUNC}}"), @@ -819,7 +825,6 @@ var linuxOopses = []*oops{ fmt: "WARNING: locking bug in %[1]v", stack: warningStackFmt(), }, - { title: compile("WARNING: lock held when returning to user space"), report: compile("WARNING: lock held when returning to user space(?:.*\\n)+?.*leaving the kernel with locks still held(?:.*\\n)+?.*at: (?:{{PC}} +)?{{FUNC}}"), -- cgit mrf-deployment