syzbot


kernel BUG in __build_ro_aux_tree

Status: upstream: reported on 2024/12/14 15:24
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+4e2c4a191f656919fda2@syzkaller.appspotmail.com
First crash: 161d, last: 75d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] kernel BUG in __build_ro_aux_tree 0 (1) 2024/12/14 15:24

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/bcachefs/bset.c:644!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 1032 Comm: kworker/u4:5 Not tainted 6.14.0-rc5-syzkaller-00025-gcfced12f5100 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Workqueue: btree_node_rewrite async_btree_node_rewrite_work
RIP: 0010:make_bfloat fs/bcachefs/bset.c:644 [inline]
RIP: 0010:__build_ro_aux_tree+0x1a84/0x1aa0 fs/bcachefs/bset.c:742
Code: 52 1f 7c fd 90 0f 0b e8 4a 1f 7c fd 90 0f 0b e8 42 1f 7c fd 90 0f 0b e8 3a bd c2 07 e8 35 1f 7c fd 90 0f 0b e8 2d 1f 7c fd 90 <0f> 0b e8 25 1f 7c fd 90 0f 0b e8 1d 1f 7c fd 90 0f 0b 66 2e 0f 1f
RSP: 0018:ffffc900026ff360 EFLAGS: 00010293
RAX: ffffffff8445aff3 RBX: 0000000000000140 RCX: ffff888035e6c880
RDX: 0000000000000000 RSI: 0000000000000130 RDI: 00000000000000fe
RBP: ffffc900026ff598 R08: ffffffff8445a6a8 R09: ffffffff84468cca
R10: 0000000000000002 R11: ffff888035e6c880 R12: 0000000000000130
R13: 0000000000000001 R14: ffff8880455f0004 R15: 0000000000000090
FS:  0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e6bc876028 CR3: 0000000011d48000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bch2_bset_build_aux_tree+0x4d1/0x6c0 fs/bcachefs/bset.c:779
 bch2_btree_build_aux_trees fs/bcachefs/btree_io.c:447 [inline]
 bch2_drop_whiteouts+0x127b/0x1510 fs/bcachefs/btree_io.c:282
 bch2_btree_post_write_cleanup+0x135/0xa70 fs/bcachefs/btree_io.c:2296
 bch2_btree_node_write_trans+0x18a/0x790 fs/bcachefs/btree_io.c:2362
 bch2_btree_node_rewrite+0xc85/0x1230 fs/bcachefs/btree_update_interior.c:2175
 async_btree_node_rewrite_trans fs/bcachefs/btree_update_interior.c:2217 [inline]
 async_btree_node_rewrite_work+0x3fb/0xf60 fs/bcachefs/btree_update_interior.c:2253
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xabe/0x18e0 kernel/workqueue.c:3319
 worker_thread+0x870/0xd30 kernel/workqueue.c:3400
 kthread+0x7a9/0x920 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:make_bfloat fs/bcachefs/bset.c:644 [inline]
RIP: 0010:__build_ro_aux_tree+0x1a84/0x1aa0 fs/bcachefs/bset.c:742
Code: 52 1f 7c fd 90 0f 0b e8 4a 1f 7c fd 90 0f 0b e8 42 1f 7c fd 90 0f 0b e8 3a bd c2 07 e8 35 1f 7c fd 90 0f 0b e8 2d 1f 7c fd 90 <0f> 0b e8 25 1f 7c fd 90 0f 0b e8 1d 1f 7c fd 90 0f 0b 66 2e 0f 1f
RSP: 0018:ffffc900026ff360 EFLAGS: 00010293
RAX: ffffffff8445aff3 RBX: 0000000000000140 RCX: ffff888035e6c880
RDX: 0000000000000000 RSI: 0000000000000130 RDI: 00000000000000fe
RBP: ffffc900026ff598 R08: ffffffff8445a6a8 R09: ffffffff84468cca
R10: 0000000000000002 R11: ffff888035e6c880 R12: 0000000000000130
R13: 0000000000000001 R14: ffff8880455f0004 R15: 0000000000000090
FS:  0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e6bc877068 CR3: 0000000051f90000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/05 20:13 upstream cfced12f5100 034534df .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __build_ro_aux_tree
2025/02/04 17:54 upstream 0de63bb7d919 44c01590 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __build_ro_aux_tree
2025/02/03 05:37 upstream 69e858e0b8b2 568559e4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __build_ro_aux_tree
2024/12/10 15:19 upstream 7cb1b4663150 cfc402b4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in __build_ro_aux_tree
* Struck through repros no longer work on HEAD.