pkg/report: add report format for "lock held when returning to user space"

This report does not have stack trace, so we always detected it as corrupted.
This commit is contained in:
Dmitry Vyukov 2018-07-12 12:38:52 +02:00
parent 3855819991
commit 3986ce95fd
2 changed files with 16 additions and 0 deletions

View File

@ -819,6 +819,13 @@ 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}}"),
fmt: "WARNING: lock held when returning to user space in %[1]v",
noStackTrace: true,
},
{
title: compile("WARNING: .*mm/.*\\.c.* k?.?malloc"),
fmt: "WARNING: kmalloc bug in %[1]v",

9
pkg/report/testdata/linux/report/257 vendored Normal file
View File

@ -0,0 +1,9 @@
TITLE: WARNING: lock held when returning to user space in fuse_lock_inode
[ 197.071637] ================================================
[ 197.073115] WARNING: lock held when returning to user space!
[ 197.074536] 4.18.0-rc4+ #51 Not tainted
[ 197.075539] ------------------------------------------------
[ 197.076969] syz-executor0/17896 is leaving the kernel with locks still held!
[ 197.078741] 1 lock held by syz-executor0/17896:
[ 197.079733] #0: 00000000a3b01fa0 (&fi->mutex){+.+.}, at: fuse_lock_inode+0xaf/0xe0