diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-05-04 09:06:49 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-05-04 09:33:43 +0200 |
| commit | 39f94310de74ebe439655675d5a6d2003adbec86 (patch) | |
| tree | 9b1dd877dd40f5632dd3c8c56f0be0ee6c40d0e1 /pkg | |
| parent | 09efdd63fa8ebdadeccc841b699026e73081f7e0 (diff) | |
pkg/report: skip kmem_cache_* in reports
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/report/linux.go | 6 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/493 | 4 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/608 | 33 |
3 files changed, 39 insertions, 4 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index de3c7c18f..e3003439d 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -766,6 +766,8 @@ var linuxStackParams = &stackParams{ "kcalloc", "kzalloc", "krealloc", + "kmem_cache", + "slab_", "debug_object", "timer_is_static_object", "work_is_static_object", @@ -983,7 +985,7 @@ var linuxOopses = append([]*oops{ linuxCallTrace, parseStackTrace, }, - skip: []string{"kmem_", "slab_", "kfree", "vunmap", "vfree"}, + skip: []string{"slab_", "kfree", "vunmap", "vfree"}, }, }, { @@ -1277,7 +1279,7 @@ var linuxOopses = append([]*oops{ fmt: "WARNING: ODEBUG bug in %[1]v", // Skip all users of ODEBUG as well. stack: warningStackFmt("debug_", "rcu", "hrtimer_", "timer_", - "work_", "percpu_", "kmem_", "slab_", "kfree", "vunmap", + "work_", "percpu_", "vunmap", "vfree", "__free_", "debug_check", "kobject_"), }, { diff --git a/pkg/report/testdata/linux/report/493 b/pkg/report/testdata/linux/report/493 index 7173c601f..8c946d8b4 100644 --- a/pkg/report/testdata/linux/report/493 +++ b/pkg/report/testdata/linux/report/493 @@ -1,5 +1,5 @@ -TITLE: INFO: rcu detected stall in kmem_cache_alloc -ALT: stall in kmem_cache_alloc +TITLE: INFO: rcu detected stall in __do_softirq +ALT: stall in __do_softirq TYPE: HANG [ 3024.981314] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: diff --git a/pkg/report/testdata/linux/report/608 b/pkg/report/testdata/linux/report/608 new file mode 100644 index 000000000..d2e2f3b2d --- /dev/null +++ b/pkg/report/testdata/linux/report/608 @@ -0,0 +1,33 @@ +TITLE: BUG: sleeping function called from invalid context in __alloc_skb + +[ 566.230190][T22160] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:201 +[ 566.293770][T22160] in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 22160, name: syz-executor.1 +[ 566.359350][T22160] 1 lock held by syz-executor.1/22160: +[ 566.389164][T22160] #0: ffffffff8bf797a0 (rcu_read_lock){....}-{1:2}, at: nfnetlink_rcv_msg+0x1da/0x1300 +[ 566.479571][T22160] Preemption disabled at: +[ 566.479589][T22160] [<ffffffff8709e980>] __dev_queue_xmit+0x1f0/0x2e30 +[ 566.534726][T22160] CPU: 1 PID: 22160 Comm: syz-executor.1 Not tainted 5.12.0-next-20210504-syzkaller #0 +[ 566.544420][T22160] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 +[ 566.554585][T22160] Call Trace: +[ 566.557997][T22160] dump_stack+0x141/0x1d7 +[ 566.567572][T22160] ___might_sleep.cold+0x1f1/0x237 +[ 566.572746][T22160] kmem_cache_alloc_node+0x33d/0x3e0 +[ 566.583028][T22160] __alloc_skb+0x20b/0x340 +[ 566.587492][T22160] netlink_ack+0x1ed/0xaa0 +[ 566.618120][T22160] netlink_rcv_skb+0x33d/0x420 +[ 566.644170][T22160] nfnetlink_rcv+0x1ac/0x420 +[ 566.654259][T22160] netlink_unicast+0x533/0x7d0 +[ 566.692979][T22160] netlink_sendmsg+0x856/0xd90 +[ 566.713975][T22160] sock_sendmsg+0xcf/0x120 +[ 566.744144][T22160] ___sys_sendmsg+0xf3/0x170 +[ 566.779537][T22160] __sys_sendmsg+0xe5/0x1b0 +[ 566.795245][T22160] do_syscall_64+0x3a/0xb0 +[ 566.799717][T22160] entry_SYSCALL_64_after_hwframe+0x44/0xae +[ 566.805676][T22160] RIP: 0033:0x4665f9 +[ 566.809601][T22160] Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 +[ 566.829223][T22160] RSP: 002b:00007f8d9ab80188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e +[ 566.838086][T22160] RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9 +[ 566.846088][T22160] RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000003 +[ 566.854326][T22160] RBP: 00000000004bfce1 R08: 0000000000000000 R09: 0000000000000000 +[ 566.862306][T22160] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 +[ 566.870283][T22160] R13: 00007ffd6b4c50bf R14: 00007f8d9ab80300 R15: 0000000000022000 |
