aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-08-08 14:54:53 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-08-08 15:19:28 +0200
commit8f0516c5fa95aca72818a1dcca2659dbdc14c1b3 (patch)
tree1ee955c713fe7a4208f92264a4709c33cf8350b0 /pkg
parente6ebef88ac567c3be8461923ea4f0bc9b9d5ad08 (diff)
pkg/report: ignore flush_work related frames
Diffstat (limited to 'pkg')
-rw-r--r--pkg/report/linux.go3
-rw-r--r--pkg/report/testdata/linux/report/3512
-rw-r--r--pkg/report/testdata/linux/report/39966
-rw-r--r--pkg/report/testdata/linux/report/40043
4 files changed, 113 insertions, 1 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index 7334d6ecf..99e348365 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -758,6 +758,9 @@ var linuxStackParams = &stackParams{
"program_check_exception",
"program_check_common",
"del_timer_sync",
+ "flush_work",
+ "__cancel_work_timer",
+ "cancel_work_sync",
},
corruptedLines: []*regexp.Regexp{
// Fault injection stacks are frequently intermixed with crash reports.
diff --git a/pkg/report/testdata/linux/report/351 b/pkg/report/testdata/linux/report/351
index e7051bdc0..8307e2ae9 100644
--- a/pkg/report/testdata/linux/report/351
+++ b/pkg/report/testdata/linux/report/351
@@ -1,4 +1,4 @@
-TITLE: INFO: trying to register non-static key in __flush_work
+TITLE: INFO: trying to register non-static key in vkms_atomic_crtc_destroy_state
[ 309.975408][T12234] INFO: trying to register non-static key.
[ 309.981253][T12234] the code is fine but needs lockdep annotation.
diff --git a/pkg/report/testdata/linux/report/399 b/pkg/report/testdata/linux/report/399
new file mode 100644
index 000000000..744c8b0b0
--- /dev/null
+++ b/pkg/report/testdata/linux/report/399
@@ -0,0 +1,66 @@
+TITLE: WARNING in em28xx_usb_disconnect
+
+[ 31.912260][ T21] ------------[ cut here ]------------
+[ 31.917870][ T21] WARNING: CPU: 1 PID: 21 at kernel/workqueue.c:3031 __flush_work.cold+0x2c/0x36
+[ 31.927362][ T21] Kernel panic - not syncing: panic_on_warn set ...
+[ 31.934264][ T21] CPU: 1 PID: 21 Comm: kworker/1:1 Not tainted 5.3.0-rc2+ #25
+[ 31.942018][ T21] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
+[ 31.952079][ T21] Workqueue: usb_hub_wq hub_event
+[ 31.957276][ T21] Call Trace:
+[ 31.960620][ T21] dump_stack+0xca/0x13e
+[ 31.965111][ T21] ? alloc_unbound_pwq.cold+0x40/0x6a
+[ 31.971638][ T21] panic+0x2a3/0x6da
+[ 31.975732][ T21] ? add_taint.cold+0x16/0x16
+[ 31.980486][ T21] ? __probe_kernel_read+0x188/0x1d0
+[ 31.985780][ T21] ? __warn.cold+0x5/0x4a
+[ 31.990110][ T21] ? __warn+0xe3/0x1e0
+[ 31.994260][ T21] ? __flush_work.cold+0x2c/0x36
+[ 31.999595][ T21] __warn.cold+0x20/0x4a
+[ 32.003835][ T21] ? __flush_work.cold+0x2c/0x36
+[ 32.008987][ T21] report_bug+0x262/0x2a0
+[ 32.013304][ T21] do_error_trap+0x12b/0x1e0
+[ 32.017879][ T21] ? __flush_work.cold+0x2c/0x36
+[ 32.022948][ T21] do_invalid_op+0x32/0x40
+[ 32.027646][ T21] ? __flush_work.cold+0x2c/0x36
+[ 32.032661][ T21] invalid_op+0x23/0x30
+[ 32.037069][ T21] RIP: 0010:__flush_work.cold+0x2c/0x36
+[ 32.042687][ T21] Code: 9a 22 00 48 c7 c7 20 e4 c5 85 e8 d9 3a 0d 00 0f 0b 45 31 e4 e9 98 86 ff ff e8 51 9a 22 00 48 c7 c7 20 e4 c5 85 e8 be 3a 0d 00 <0f> 0b 45 31 e4 e9 7d 86 ff ff e8 36 9a 22 00 48 c7 c7 20 e4 c5 85
+[ 32.066233][ T21] RSP: 0018:ffff8881da2f7720 EFLAGS: 00010286
+[ 32.072615][ T21] RAX: 0000000000000024 RBX: dffffc0000000000 RCX: 0000000000000000
+[ 32.081158][ T21] RDX: 0000000000000000 RSI: ffffffff8128a0fd RDI: ffffed103b45eed6
+[ 32.090281][ T21] RBP: ffff8881da2f7888 R08: 0000000000000024 R09: fffffbfff11acd9a
+[ 32.100441][ T21] R10: fffffbfff11acd99 R11: ffffffff88d66ccf R12: 0000000000000000
+[ 32.109253][ T21] R13: 0000000000000001 R14: ffff8881d2e99df8 R15: ffff8881d2d61b78
+[ 32.117896][ T21] ? vprintk_func+0x7d/0x113
+[ 32.122925][ T21] ? wq_update_unbound_numa+0x710/0x710
+[ 32.128901][ T21] ? __dev_printk+0x1db/0x203
+[ 32.133677][ T21] ? _dev_info+0xd7/0x109
+[ 32.138711][ T21] ? _dev_notice+0x109/0x109
+[ 32.143931][ T21] ? lockdep_hardirqs_on+0x379/0x580
+[ 32.149820][ T21] ? usb_hcd_flush_endpoint+0x14c/0x2d0
+[ 32.155978][ T21] ? usb_disable_endpoint+0x1ba/0x1f0
+[ 32.161459][ T21] em28xx_usb_disconnect.cold+0x280/0x2a6
+[ 32.170214][ T21] usb_unbind_interface+0x1bd/0x8a0
+[ 32.177191][ T21] ? usb_autoresume_device+0x60/0x60
+[ 32.182587][ T21] device_release_driver_internal+0x404/0x4c0
+[ 32.188714][ T21] bus_remove_device+0x2dc/0x4a0
+[ 32.195974][ T21] device_del+0x420/0xb10
+[ 32.200916][ T21] ? __device_links_no_driver+0x240/0x240
+[ 32.207857][ T21] ? usb_remove_ep_devs+0x3e/0x80
+[ 32.213675][ T21] ? remove_intf_ep_devs+0x13f/0x1d0
+[ 32.220341][ T21] usb_disable_device+0x211/0x690
+[ 32.225687][ T21] usb_disconnect+0x284/0x8d0
+[ 32.230774][ T21] hub_event+0x1454/0x3640
+[ 32.235406][ T21] ? find_held_lock+0x2d/0x110
+[ 32.240229][ T21] ? mark_held_locks+0xe0/0xe0
+[ 32.245957][ T21] ? hub_port_debounce+0x260/0x260
+[ 32.252587][ T21] process_one_work+0x92b/0x1530
+[ 32.257632][ T21] ? pwq_dec_nr_in_flight+0x310/0x310
+[ 32.263522][ T21] ? do_raw_spin_lock+0x11a/0x280
+[ 32.269121][ T21] worker_thread+0x7ab/0xe20
+[ 32.276466][ T21] ? process_one_work+0x1530/0x1530
+[ 32.282107][ T21] kthread+0x318/0x420
+[ 32.286548][ T21] ? kthread_create_on_node+0xf0/0xf0
+[ 32.292243][ T21] ret_from_fork+0x24/0x30
+[ 32.297457][ T21] Kernel Offset: disabled
+[ 32.302033][ T21] Rebooting in 86400 seconds..
diff --git a/pkg/report/testdata/linux/report/400 b/pkg/report/testdata/linux/report/400
new file mode 100644
index 000000000..7d8ee796d
--- /dev/null
+++ b/pkg/report/testdata/linux/report/400
@@ -0,0 +1,43 @@
+TITLE: WARNING in blk_sync_queue
+
+WARNING: CPU: 1 PID: 3214 at kernel/workqueue.c:2911 __flush_work+0x740/0x880 kernel/workqueue.c:2911
+Kernel panic - not syncing: panic_on_warn set ...
+
+CPU: 1 PID: 3214 Comm: kworker/1:2 Not tainted 4.19.38 #6
+Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
+Workqueue: md_misc mddev_delayed_delete
+Call Trace:
+ __dump_stack lib/dump_stack.c:77 [inline]
+ dump_stack+0x172/0x1f0 lib/dump_stack.c:113
+ panic+0x263/0x51d kernel/panic.c:185
+ __warn.cold+0x20/0x54 kernel/panic.c:540
+ report_bug+0x263/0x2b0 lib/bug.c:186
+ fixup_bug arch/x86/kernel/traps.c:178 [inline]
+ fixup_bug arch/x86/kernel/traps.c:173 [inline]
+ do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
+ do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
+ invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:997
+RIP: 0010:__flush_work+0x740/0x880 kernel/workqueue.c:2911
+Code: 74 58 e8 63 59 25 00 fb 66 0f 1f 44 00 00 45 31 e4 e9 86 fd ff ff e8 4f 59 25 00 0f 0b 45 31 e4 e9 77 fd ff ff e8 40 59 25 00 <0f> 0b 45 31 e4 e9 68 fd ff ff e8 31 59 25 00 4c 89 ff 45 31 e4 e8
+RSP: 0018:ffff88809bc3f990 EFLAGS: 00010293
+RAX: ffff88809bc10640 RBX: dffffc0000000000 RCX: ffffffff8146100b
+RDX: 0000000000000000 RSI: ffffffff814616b0 RDI: 0000000000000001
+RBP: ffff88809bc3faf8 R08: ffff88809bc10640 R09: ffff88809bc10f08
+R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809aca8690
+R13: ffff88809bc3fad0 R14: 0000000000000001 R15: 0000000000000001
+ __cancel_work_timer+0x3bf/0x520 kernel/workqueue.c:3007
+ cancel_work_sync+0x18/0x20 kernel/workqueue.c:3043
+ blk_sync_queue+0x33/0x1c0 block/blk-core.c:408
+ blk_cleanup_queue+0x404/0x720 block/blk-core.c:807
+ md_free+0xcb/0x1b0 drivers/md/md.c:5223
+ kobject_cleanup lib/kobject.c:662 [inline]
+ kobject_release lib/kobject.c:691 [inline]
+ kref_put include/linux/kref.h:70 [inline]
+ kobject_put.cold+0x28f/0x2ec lib/kobject.c:708
+ mddev_delayed_delete+0x34/0x40 drivers/md/md.c:5251
+ process_one_work+0x98e/0x1760 kernel/workqueue.c:2153
+ worker_thread+0x98/0xe40 kernel/workqueue.c:2296
+ kthread+0x357/0x430 kernel/kthread.c:246
+ ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413
+Kernel Offset: disabled
+Rebooting in 86400 seconds..