journal_seq 0 need_discard 0 need_inc_gen 0 dirty_sectors 256 stripe_sectors 0 cached_sectors 0 stripe 0 stripe_redundancy 0 io_time[READ] 0 io_time[WRITE] 0 fragmentation 0 bp_start 8 incorrectly set at freespace:0:24:0 (free 0, genbits 0 should be 0), fixing ------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_locking.h:306! Oops: invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 0 UID: 0 PID: 357 Comm: kworker/u8:4 Not tainted 6.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: btree_node_rewrite async_btree_node_rewrite_work RIP: 0010:__btree_node_lock_write fs/bcachefs/btree_locking.h:306 [inline] RIP: 0010:bch2_btree_node_lock_write fs/bcachefs/btree_locking.h:327 [inline] RIP: 0010:bch2_btree_set_root+0x38a/0x3a0 fs/bcachefs/btree_update_interior.c:1323 Code: 24 48 89 da e8 b7 ee 0c 00 65 ff 0d 08 f6 6c 7e 49 89 ed 0f 85 bd fc ff ff 0f 1f 44 00 00 e9 b3 fc ff ff 90 0f 0b 90 0f 0b 90 <0f> 0b 90 0f 0b 90 0f 0b 90 0f 0b 90 0f 0b 90 eb 98 0f 1f 44 00 00 RSP: 0018:ffffc90001067c48 EFLAGS: 00010206 RAX: 0000000000000000 RBX: ffff88810a7e9800 RCX: 0000000000000000 RDX: ffff88810435c268 RSI: ffffffff83ab17f5 RDI: ffffffff838b0fca RBP: ffff88810b76c000 R08: 0000000000000000 R09: ffffc90001067bf8 R10: ffff888179cb203f R11: 0000000000000000 R12: ffff888104349000 R13: ffff88810435c268 R14: 0000000000000000 R15: ffff88810e380000 FS: 0000000000000000(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f20be3619a0 CR3: 0000000003e46000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_btree_node_rewrite+0x2de/0x4a0 fs/bcachefs/btree_update_interior.c:2172 async_btree_node_rewrite_trans fs/bcachefs/btree_update_interior.c:2236 [inline] async_btree_node_rewrite_work+0x172/0x490 fs/bcachefs/btree_update_interior.c:2249 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x2e6/0x6b0 kernel/workqueue.c:3310 worker_thread+0x212/0x2d0 kernel/workqueue.c:3391 kthread+0xf5/0x110 kernel/kthread.c:389 ret_from_fork+0x32/0x40 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:__btree_node_lock_write fs/bcachefs/btree_locking.h:306 [inline] RIP: 0010:bch2_btree_node_lock_write fs/bcachefs/btree_locking.h:327 [inline] RIP: 0010:bch2_btree_set_root+0x38a/0x3a0 fs/bcachefs/btree_update_interior.c:1323 Code: 24 48 89 da e8 b7 ee 0c 00 65 ff 0d 08 f6 6c 7e 49 89 ed 0f 85 bd fc ff ff 0f 1f 44 00 00 e9 b3 fc ff ff 90 0f 0b 90 0f 0b 90 <0f> 0b 90 0f 0b 90 0f 0b 90 0f 0b 90 0f 0b 90 eb 98 0f 1f 44 00 00 RSP: 0018:ffffc90001067c48 EFLAGS: 00010206 RAX: 0000000000000000 RBX: ffff88810a7e9800 RCX: 0000000000000000 RDX: ffff88810435c268 RSI: ffffffff83ab17f5 RDI: ffffffff838b0fca RBP: ffff88810b76c000 R08: 0000000000000000 R09: ffffc90001067bf8 R10: ffff888179cb203f R11: 0000000000000000 R12: ffff888104349000 R13: ffff88810435c268 R14: 0000000000000000 R15: ffff88810e380000 FS: 0000000000000000(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f20be3619a0 CR3: 0000000003e46000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400