------------[ cut here ]------------ kernel BUG at fs/bcachefs/sb-members.c:453! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 1032 Comm: kworker/u4:8 Not tainted 6.12.0-rc5-syzkaller-00005-ge42b1a9a2557 #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_update btree_interior_update_work RIP: 0010:__bch2_dev_btree_bitmap_mark fs/bcachefs/sb-members.c:453 [inline] RIP: 0010:bch2_dev_btree_bitmap_mark+0xfd2/0xff0 fs/bcachefs/sb-members.c:473 Code: b3 f1 ff ff e8 df 3a 4c fd 90 0f 0b e8 d7 3a 4c fd 90 0f 0b e8 cf 3a 4c fd 90 0f 0b e8 c7 3a 4c fd 90 0f 0b e8 bf 3a 4c fd 90 <0f> 0b e8 b7 3a 4c fd 90 0f 0b e8 cf 48 7e 07 66 2e 0f 1f 84 00 00 RSP: 0018:ffffc90002337680 EFLAGS: 00010293 RAX: ffffffff84489dd1 RBX: 00000000ffffffc8 RCX: ffff888000f18000 RDX: 0000000000000000 RSI: 000000000000003f RDI: 0000000000000039 RBP: ffffc90002337890 R08: ffffffff84489a51 R09: ebac05adae1fcd84 R10: 5941de002b77f67a R11: ebac05adae1fcd84 R12: 000000000000003f R13: 0000042098000000 R14: ffff8880432ea570 R15: 000000000000003f FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc704fee48 CR3: 0000000042c28000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btree_update_new_nodes_mark_sb fs/bcachefs/btree_update_interior.c:631 [inline] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:695 [inline] btree_interior_update_work+0x478/0x2b10 fs/bcachefs/btree_update_interior.c:866 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__bch2_dev_btree_bitmap_mark fs/bcachefs/sb-members.c:453 [inline] RIP: 0010:bch2_dev_btree_bitmap_mark+0xfd2/0xff0 fs/bcachefs/sb-members.c:473 Code: b3 f1 ff ff e8 df 3a 4c fd 90 0f 0b e8 d7 3a 4c fd 90 0f 0b e8 cf 3a 4c fd 90 0f 0b e8 c7 3a 4c fd 90 0f 0b e8 bf 3a 4c fd 90 <0f> 0b e8 b7 3a 4c fd 90 0f 0b e8 cf 48 7e 07 66 2e 0f 1f 84 00 00 RSP: 0018:ffffc90002337680 EFLAGS: 00010293 RAX: ffffffff84489dd1 RBX: 00000000ffffffc8 RCX: ffff888000f18000 RDX: 0000000000000000 RSI: 000000000000003f RDI: 0000000000000039 RBP: ffffc90002337890 R08: ffffffff84489a51 R09: ebac05adae1fcd84 R10: 5941de002b77f67a R11: ebac05adae1fcd84 R12: 000000000000003f R13: 0000042098000000 R14: ffff8880432ea570 R15: 000000000000003f FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc704fee48 CR3: 000000001aaee000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400