Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 UID: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: btree_update btree_interior_update_work RIP: 0010:bch2_btree_path_peek_slot+0xf4d/0xf70 fs/bcachefs/btree_iter.c:1850 Code: 54 24 18 e8 c5 66 20 ff 4c 8b 54 24 18 44 8b 4c 24 10 4d 89 e8 48 8b 74 24 08 48 ba 00 00 00 00 00 fc ff df e9 38 f4 ff ff 90 <0f> 0b 90 0f 0b e8 99 a6 9e 03 90 0f 0b 90 0f 0b 90 0f 0b 90 0f 0b RSP: 0018:ffffc900000bd7a0 EFLAGS: 00010206 RAX: 1ffff1102afa40e4 RBX: ffff888157d20720 RCX: 0000000000000680 RDX: dffffc0000000000 RSI: fffffffffffff765 RDI: ffff888157d20700 RBP: ffffc900000bd8b0 R08: ffff888157d20700 R09: 0000000000000000 R10: ffffc900000bda20 R11: fffff52000017b46 R12: 0000000000002164 R13: 0000000000000000 R14: 0000000000000000 R15: ffff888157d20720 FS: 0000000000000000(0000) GS:ffff8881f6500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb9c27705a0 CR3: 0000000157402000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_btree_iter_peek_slot+0xa8a/0x27c0 fs/bcachefs/btree_iter.c:2799 __bch2_bkey_get_iter fs/bcachefs/btree_iter.h:573 [inline] bch2_bkey_get_iter fs/bcachefs/btree_iter.h:587 [inline] bch2_check_discard_freespace_key+0x32f/0xff0 fs/bcachefs/alloc_background.c:1404 try_alloc_bucket fs/bcachefs/alloc_foreground.c:287 [inline] bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:438 [inline] bch2_bucket_alloc_trans+0x193b/0x2e50 fs/bcachefs/alloc_foreground.c:570 bch2_bucket_alloc_set_trans+0x685/0x1180 fs/bcachefs/alloc_foreground.c:726 __open_bucket_add_buckets+0x1c90/0x2a70 fs/bcachefs/alloc_foreground.c:969 open_bucket_add_buckets+0x1f0/0x2c0 fs/bcachefs/alloc_foreground.c:1013 bch2_alloc_sectors_start_trans+0xc39/0x1c00 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:322 [inline] bch2_btree_reserve_get+0x587/0x17d0 fs/bcachefs/btree_update_interior.c:532 bch2_btree_update_start+0xfa9/0x1530 fs/bcachefs/btree_update_interior.c:1230 bch2_btree_split_leaf+0xcb/0x7a0 fs/bcachefs/btree_update_interior.c:1851 bch2_trans_commit_error+0x3ea/0xe50 fs/bcachefs/btree_trans_commit.c:908 __bch2_trans_commit+0x12f0/0x8820 fs/bcachefs/btree_trans_commit.c:1085 bch2_trans_commit fs/bcachefs/btree_update.h:183 [inline] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:706 [inline] btree_interior_update_work+0xa84/0x2470 fs/bcachefs/btree_update_interior.c:844 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0x947/0x1410 kernel/workqueue.c:3317 worker_thread+0x868/0xc70 kernel/workqueue.c:3398 kthread+0x647/0x750 kernel/kthread.c:464 ret_from_fork+0x32/0x60 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_btree_path_peek_slot+0xf4d/0xf70 fs/bcachefs/btree_iter.c:1850 Code: 54 24 18 e8 c5 66 20 ff 4c 8b 54 24 18 44 8b 4c 24 10 4d 89 e8 48 8b 74 24 08 48 ba 00 00 00 00 00 fc ff df e9 38 f4 ff ff 90 <0f> 0b 90 0f 0b e8 99 a6 9e 03 90 0f 0b 90 0f 0b 90 0f 0b 90 0f 0b RSP: 0018:ffffc900000bd7a0 EFLAGS: 00010206 RAX: 1ffff1102afa40e4 RBX: ffff888157d20720 RCX: 0000000000000680 RDX: dffffc0000000000 RSI: fffffffffffff765 RDI: ffff888157d20700 RBP: ffffc900000bd8b0 R08: ffff888157d20700 R09: 0000000000000000 R10: ffffc900000bda20 R11: fffff52000017b46 R12: 0000000000002164 R13: 0000000000000000 R14: 0000000000000000 R15: ffff888157d20720 FS: 0000000000000000(0000) GS:ffff8881f6500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb9c27705a0 CR3: 0000000157402000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400