aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-13 10:31:26 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-13 10:31:26 +0200
commit3d741171f29921671c3c8da59f00911b4ee3bb23 (patch)
treeed19cd186064fe82a2cdd15e45b0c64e3c874b8b /pkg
parent06c33b3af0ff4072fb002879f83077c9d162a224 (diff)
pkg/report: add "lock held when returning to user space" format for older kernels
Diffstat (limited to 'pkg')
-rw-r--r--pkg/report/linux.go7
-rw-r--r--pkg/report/testdata/linux/report/25810
2 files changed, 16 insertions, 1 deletions
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
@@ -694,6 +694,12 @@ var linuxOopses = []*oops{
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}}"),
fmt: "BUG: bad unlock balance in %[1]v",
@@ -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}}"),
diff --git a/pkg/report/testdata/linux/report/258 b/pkg/report/testdata/linux/report/258
new file mode 100644
index 000000000..acded8699
--- /dev/null
+++ b/pkg/report/testdata/linux/report/258
@@ -0,0 +1,10 @@
+TITLE: BUG: lock held when returning to user space in fuse_lock_inode
+
+[ 36.715112] ================================================
+[ 36.720935] [ BUG: lock held when returning to user space! ]
+[ 36.726730] 4.9.112-g9e79039 #7 Not tainted
+[ 36.731032] ------------------------------------------------
+[ 36.736813] syz-executor724/3814 is leaving the kernel with locks still held!
+[ 36.744085] 1 lock held by syz-executor724/3814:
+[ 36.748826] #0: (&fi->mutex){+.+.+.}, at: [<ffffffff81938722>] fuse_lock_inode+0xa2/0xd0
+[ 36.748826] #1: (&fi->mutex){+.+.+.}, at: [<ffffffff81938722>] somethingelse+0xa2/0xd0