aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-06-11 16:00:19 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-06-11 14:13:02 +0000
commit98683f8f094a4a5418f62711143436a99522360e (patch)
tree0ef89adfead44ff1af98dbf13ea7d33a54a241c3 /pkg/report
parent5d7e17caf7d0971d22446d8a81bcf1cd8c18a0dc (diff)
pkg/report: skip the folio_unlock frame
It's too generic and leads to merging unrelated crash reports. See https://syzkaller.appspot.com/bug?extid=c0dc46208750f063d0e0 and the related LKML discussion.
Diffstat (limited to 'pkg/report')
-rw-r--r--pkg/report/linux.go2
-rw-r--r--pkg/report/testdata/linux/report/74188
-rw-r--r--pkg/report/testdata/linux/report/74278
3 files changed, 167 insertions, 1 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index d013918aa..5cbaf38b1 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -1138,7 +1138,7 @@ var linuxStackParams = &stackParams{
"krealloc",
"kmem_cache",
"allocate_slab",
- "folio_alloc",
+ "folio_(?:alloc|unlock)",
"filemap_alloc_folio",
"__filemap_get_folio",
"find_or_create_page",
diff --git a/pkg/report/testdata/linux/report/741 b/pkg/report/testdata/linux/report/741
new file mode 100644
index 000000000..943866469
--- /dev/null
+++ b/pkg/report/testdata/linux/report/741
@@ -0,0 +1,88 @@
+TITLE: kernel BUG in f2fs_sync_node_pages
+TYPE: BUG
+
+[ 155.791771][ T1059] ------------[ cut here ]------------
+[ 155.797494][ T1059] kernel BUG at mm/filemap.c:1498!
+[ 155.810751][ T1059] Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
+[ 155.817098][ T1059] CPU: 1 UID: 0 PID: 1059 Comm: kworker/u8:6 Not tainted 6.15.0-next-20250606-syzkaller #0 PREEMPT(full)
+[ 155.828428][ T1059] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
+[ 155.838540][ T1059] Workqueue: writeback wb_workfn (flush-7:5)
+[ 155.844611][ T1059] RIP: 0010:folio_unlock+0x13d/0x160
+[ 155.849943][ T1059] Code: de c8 ff 48 89 df 48 c7 c6 20 36 94 8b e8 7b 78 10 00 90 0f 0b e8 33 de c8 ff 48 89 df 48 c7 c6 40 2c 94 8b e8 64 78 10 00 90 <0f> 0b e8 1c de c8 ff 48 89 df 48 c7 c6 20 36 94 8b e8 4d 78 10 00
+[ 155.869596][ T1059] RSP: 0018:ffffc90003c3ee28 EFLAGS: 00010246
+[ 155.875774][ T1059] RAX: f2397056558d0800 RBX: ffffea0000d027c0 RCX: 0000000000000000
+[ 155.883760][ T1059] RDX: 0000000000000006 RSI: ffffffff8d984053 RDI: 00000000ffffffff
+[ 155.891929][ T1059] RBP: ffffc90003c3f110 R08: ffffffff8fa126f7 R09: 1ffffffff1f424de
+[ 155.899917][ T1059] R10: dffffc0000000000 R11: fffffbfff1f424df R12: 1ffffd40001a04f9
+[ 155.907901][ T1059] R13: 00fff3800000423c R14: ffffea0000d027c8 R15: dffffc0000000000
+[ 155.915977][ T1059] FS: 0000000000000000(0000) GS:ffff888125d4d000(0000) knlGS:0000000000000000
+[ 155.924923][ T1059] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+[ 155.931527][ T1059] CR2: 00007ffec346a000 CR3: 000000007d7e0000 CR4: 00000000003526f0
+[ 155.939530][ T1059] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
+[ 155.947522][ T1059] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
+[ 155.955505][ T1059] Call Trace:
+[ 155.958797][ T1059] <TASK>
+[ 155.961746][ T1059] f2fs_sync_node_pages+0x180a/0x1a10
+[ 155.967150][ T1059] ? __pfx_f2fs_sync_node_pages+0x10/0x10
+[ 155.972884][ T1059] ? __percpu_counter_sum+0x1c2/0x1e0
+[ 155.978291][ T1059] ? rcu_is_watching+0x15/0xb0
+[ 155.983079][ T1059] ? blk_start_plug+0x52/0x1b0
+[ 155.987856][ T1059] f2fs_write_node_pages+0x303/0x6e0
+[ 155.993160][ T1059] ? __pfx_f2fs_write_node_pages+0x10/0x10
+[ 155.998984][ T1059] ? unwind_next_frame+0xa5/0x2390
+[ 156.004121][ T1059] ? unwind_next_frame+0x19ae/0x2390
+[ 156.009431][ T1059] ? __pfx_f2fs_write_node_pages+0x10/0x10
+[ 156.015250][ T1059] do_writepages+0x32b/0x550
+[ 156.019871][ T1059] ? reacquire_held_locks+0x127/0x1d0
+[ 156.025259][ T1059] ? writeback_sb_inodes+0x372/0x1000
+[ 156.030665][ T1059] __writeback_single_inode+0x145/0xff0
+[ 156.036232][ T1059] ? do_raw_spin_unlock+0x122/0x240
+[ 156.041464][ T1059] writeback_sb_inodes+0x6b5/0x1000
+[ 156.046714][ T1059] ? switch_ldt+0x10a/0x250
+[ 156.051249][ T1059] ? __pfx_writeback_sb_inodes+0x10/0x10
+[ 156.056923][ T1059] ? rcu_is_watching+0x15/0xb0
+[ 156.061739][ T1059] wb_writeback+0x43b/0xaf0
+[ 156.066265][ T1059] ? queue_io+0x391/0x590
+[ 156.070611][ T1059] ? __pfx_wb_writeback+0x10/0x10
+[ 156.075682][ T1059] ? _raw_spin_unlock_irq+0x23/0x50
+[ 156.080908][ T1059] wb_workfn+0x409/0xef0
+[ 156.085178][ T1059] ? __pfx_wb_workfn+0x10/0x10
+[ 156.089956][ T1059] ? __lock_acquire+0xab9/0xd20
+[ 156.094826][ T1059] ? process_scheduled_works+0x9ef/0x17b0
+[ 156.100567][ T1059] ? _raw_spin_unlock_irq+0x23/0x50
+[ 156.105784][ T1059] ? process_scheduled_works+0x9ef/0x17b0
+[ 156.111519][ T1059] ? process_scheduled_works+0x9ef/0x17b0
+[ 156.117263][ T1059] process_scheduled_works+0xae1/0x17b0
+[ 156.122844][ T1059] ? __pfx_process_scheduled_works+0x10/0x10
+[ 156.128847][ T1059] worker_thread+0x8a0/0xda0
+[ 156.133458][ T1059] kthread+0x70e/0x8a0
+[ 156.137547][ T1059] ? __pfx_worker_thread+0x10/0x10
+[ 156.142676][ T1059] ? __pfx_kthread+0x10/0x10
+[ 156.147283][ T1059] ? _raw_spin_unlock_irq+0x23/0x50
+[ 156.152505][ T1059] ? lockdep_hardirqs_on+0x9c/0x150
+[ 156.157717][ T1059] ? __pfx_kthread+0x10/0x10
+[ 156.162323][ T1059] ret_from_fork+0x3f9/0x770
+[ 156.166942][ T1059] ? __pfx_ret_from_fork+0x10/0x10
+[ 156.172098][ T1059] ? __switch_to_asm+0x39/0x70
+[ 156.176880][ T1059] ? __switch_to_asm+0x33/0x70
+[ 156.181655][ T1059] ? __pfx_kthread+0x10/0x10
+[ 156.186261][ T1059] ret_from_fork_asm+0x1a/0x30
+[ 156.191131][ T1059] </TASK>
+[ 156.194158][ T1059] Modules linked in:
+[ 156.199886][ T1059] ---[ end trace 0000000000000000 ]---
+[ 156.371602][ T6681] EXT4-fs (loop0): encrypted files will use data=ordered instead of data journaling mode
+[ 156.391971][ T6681] EXT4-fs (loop0): couldn't mount as ext2 due to feature incompatibilities
+[ 156.948317][ T1059] RIP: 0010:folio_unlock+0x13d/0x160
+[ 156.972914][ T1059] Code: de c8 ff 48 89 df 48 c7 c6 20 36 94 8b e8 7b 78 10 00 90 0f 0b e8 33 de c8 ff 48 89 df 48 c7 c6 40 2c 94 8b e8 64 78 10 00 90 <0f> 0b e8 1c de c8 ff 48 89 df 48 c7 c6 20 36 94 8b e8 4d 78 10 00
+[ 157.040666][ T1059] RSP: 0018:ffffc90003c3ee28 EFLAGS: 00010246
+[ 157.048867][ T1059] RAX: f2397056558d0800 RBX: ffffea0000d027c0 RCX: 0000000000000000
+[ 157.059263][ T1059] RDX: 0000000000000006 RSI: ffffffff8d984053 RDI: 00000000ffffffff
+[ 157.094042][ T1059] RBP: ffffc90003c3f110 R08: ffffffff8fa126f7 R09: 1ffffffff1f424de
+[ 157.103430][ T1059] R10: dffffc0000000000 R11: fffffbfff1f424df R12: 1ffffd40001a04f9
+[ 157.114786][ T1059] R13: 00fff3800000423c R14: ffffea0000d027c8 R15: dffffc0000000000
+[ 157.124859][ T1059] FS: 0000000000000000(0000) GS:ffff888125d4d000(0000) knlGS:0000000000000000
+[ 157.133932][ T1059] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+[ 157.141515][ T1059] CR2: 0000200000404030 CR3: 0000000078688000 CR4: 00000000003526f0
+[ 157.149617][ T1059] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
+[ 157.161850][ T1059] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
+[ 157.211594][ T1059] Kernel panic - not syncing: Fatal exception
diff --git a/pkg/report/testdata/linux/report/742 b/pkg/report/testdata/linux/report/742
new file mode 100644
index 000000000..353508528
--- /dev/null
+++ b/pkg/report/testdata/linux/report/742
@@ -0,0 +1,78 @@
+TITLE: kernel BUG in netfs_perform_write
+TYPE: BUG
+EXECUTOR: proc=0, id=886
+
+[ 222.544519][ T8817] ------------[ cut here ]------------
+[ 222.866443][ T8829] 9pnet_virtio: no channels available for device syz
+[ 222.868961][ T8817] kernel BUG at mm/filemap.c:1499!
+[ 222.928082][ T8817] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
+[ 222.931127][ T5950] GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
+[ 222.942066][ T8817] CPU: 3 UID: 0 PID: 8817 Comm: syz.0.886 Not tainted 6.14.0-rc3-syzkaller-00060-g6537cfb395f3 #0
+[ 222.942096][ T8817] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
+[ 222.942106][ T8817] RIP: 0010:folio_unlock+0xb3/0xd0
+[ 222.942138][ T8817] Code: f3 68 ca ff 48 89 ef 31 f6 e8 e9 ed ff ff 5b 5d e9 e2 68 ca ff e8 dd 68 ca ff 48 c7 c6 00 8a 78 8b 48 89 ef e8 de c9 11 00 90 <0f> 0b 48 89 df e8 d3 83 2d 00 e9 7b ff ff ff 66 66 2e 0f 1f 84 00
+[ 222.942153][ T8817] RSP: 0018:ffffc900055df988 EFLAGS: 00010293
+[ 222.942167][ T8817] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc900055df830
+[ 222.942178][ T8817] RDX: ffff888022f48000 RSI: ffffffff81ef7612 RDI: ffff888022f48444
+[ 222.942188][ T8817] RBP: ffffea0000df3b00 R08: 0000000000000000 R09: fffffbfff20c49e2
+[ 222.942198][ T8817] R10: ffffffff90624f17 R11: 0000000000000004 R12: ffff88804fd17600
+[ 222.942208][ T8817] R13: ffff88804fd17920 R14: ffffea0000df3b00 R15: ffffc900055dfde8
+[ 222.942218][ T8817] FS: 00007f734d9f66c0(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000
+[ 222.942247][ T8817] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+[ 222.942259][ T8817] CR2: 0000555579553808 CR3: 0000000050540000 CR4: 0000000000352ef0
+[ 222.942269][ T8817] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
+[ 222.942278][ T8817] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
+[ 222.942287][ T8817] Call Trace:
+[ 222.942294][ T8817] <TASK>
+[ 222.942304][ T8817] ? die+0x31/0x80
+[ 222.942328][ T8817] ? do_trap+0x232/0x430
+[ 222.942345][ T8817] ? folio_unlock+0xb3/0xd0
+[ 222.942362][ T8817] ? folio_unlock+0xb3/0xd0
+[ 222.942377][ T8817] ? do_error_trap+0xf4/0x230
+[ 222.942393][ T8817] ? folio_unlock+0xb3/0xd0
+[ 222.942410][ T8817] ? handle_invalid_op+0x34/0x40
+[ 222.942426][ T8817] ? folio_unlock+0xb3/0xd0
+[ 222.942442][ T8817] ? exc_invalid_op+0x2e/0x50
+[ 222.942467][ T8817] ? asm_exc_invalid_op+0x1a/0x20
+[ 222.942490][ T8817] ? folio_unlock+0xb2/0xd0
+[ 222.942506][ T8817] ? folio_unlock+0xb3/0xd0
+[ 222.942522][ T8817] ? folio_unlock+0xb2/0xd0
+[ 222.942538][ T8817] netfs_perform_write+0xc04/0x2140
+[ 222.942565][ T8817] ? __pfx_netfs_perform_write+0x10/0x10
+[ 222.942594][ T8817] ? inode_needs_update_time.part.0+0x191/0x270
+[ 222.942615][ T8817] netfs_file_write_iter+0x494/0x550
+[ 222.942635][ T8817] v9fs_file_write_iter+0x9b/0x100
+[ 222.942656][ T8817] vfs_write+0x5ae/0x1150
+[ 222.942679][ T8817] ? __pfx_v9fs_file_write_iter+0x10/0x10
+[ 222.942696][ T8817] ? __pfx___mutex_lock+0x10/0x10
+[ 222.942717][ T8817] ? __pfx_vfs_write+0x10/0x10
+[ 222.942744][ T8817] ksys_write+0x12b/0x250
+[ 222.942768][ T8817] ? __pfx_ksys_write+0x10/0x10
+[ 222.942791][ T8817] do_syscall_64+0xcd/0x250
+[ 222.942809][ T8817] entry_SYSCALL_64_after_hwframe+0x77/0x7f
+[ 222.942828][ T8817] RIP: 0033:0x7f734fb8cde9
+[ 222.942842][ T8817] 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 a8 ff ff ff f7 d8 64 89 01 48
+[ 222.942856][ T8817] RSP: 002b:00007f734d9f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
+[ 222.942871][ T8817] RAX: ffffffffffffffda RBX: 00007f734fda5fa0 RCX: 00007f734fb8cde9
+[ 222.942880][ T8817] RDX: 000000000000000a RSI: 0000400000000080 RDI: 0000000000000004
+[ 222.942890][ T8817] RBP: 00007f734d9f6090 R08: 0000000000000000 R09: 0000000000000000
+[ 222.942899][ T8817] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
+[ 222.942908][ T8817] R13: 0000000000000000 R14: 00007f734fda5fa0 R15: 00007ffecea88e38
+[ 222.942921][ T8817] </TASK>
+[ 222.942927][ T8817] Modules linked in:
+[ 222.943041][ T8817] ---[ end trace 0000000000000000 ]---
+[ 222.943050][ T8817] RIP: 0010:folio_unlock+0xb3/0xd0
+[ 222.943068][ T8817] Code: f3 68 ca ff 48 89 ef 31 f6 e8 e9 ed ff ff 5b 5d e9 e2 68 ca ff e8 dd 68 ca ff 48 c7 c6 00 8a 78 8b 48 89 ef e8 de c9 11 00 90 <0f> 0b 48 89 df e8 d3 83 2d 00 e9 7b ff ff ff 66 66 2e 0f 1f 84 00
+[ 222.943083][ T8817] RSP: 0018:ffffc900055df988 EFLAGS: 00010293
+[ 222.943095][ T8817] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc900055df830
+[ 222.943105][ T8817] RDX: ffff888022f48000 RSI: ffffffff81ef7612 RDI: ffff888022f48444
+[ 222.943115][ T8817] RBP: ffffea0000df3b00 R08: 0000000000000000 R09: fffffbfff20c49e2
+[ 222.943125][ T8817] R10: ffffffff90624f17 R11: 0000000000000004 R12: ffff88804fd17600
+[ 222.943135][ T8817] R13: ffff88804fd17920 R14: ffffea0000df3b00 R15: ffffc900055dfde8
+[ 222.943146][ T8817] FS: 00007f734d9f66c0(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000
+[ 222.943174][ T8817] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
+[ 222.943186][ T8817] CR2: 0000555579553808 CR3: 0000000050540000 CR4: 0000000000352ef0
+[ 222.943197][ T8817] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
+[ 222.943206][ T8817] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
+[ 222.943218][ T8817] Kernel panic - not syncing: Fatal exception
+[ 222.964234][ T8817] Kernel Offset: disabled