------------[ cut here ]------------ kernel BUG at fs/bcachefs/alloc_foreground.c:489! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 11154 Comm: syz-executor.2 Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:489 [inline] RIP: 0010:bch2_bucket_alloc_trans+0x3ac8/0x3b30 fs/bcachefs/alloc_foreground.c:649 Code: 4e f6 f4 fd e9 07 c7 ff ff 44 89 f1 80 e1 07 38 c1 0f 8c fe fd ff ff 4c 89 f7 e8 e3 f4 f4 fd e9 f1 fd ff ff e8 69 7a 92 fd 90 <0f> 0b e8 61 7a 92 fd 90 0f 0b e8 29 3b 7a 07 f3 0f 1e fa e8 50 7a RSP: 0018:ffffc900042ade60 EFLAGS: 00010293 RAX: ffffffff8403aba7 RBX: 0000000000000019 RCX: ffff8880235f8000 RDX: 0000000000000000 RSI: 0000000000000019 RDI: 0000000000000000 RBP: ffffc900042ae590 R08: ffffffff84037d73 R09: 0000000000000000 R10: ffffc900042ae448 R11: fffff52000855c8e R12: 0000000000000037 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fafd4bc16c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0604f328e5 CR3: 0000000063ee6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_bucket_alloc_set_trans+0x4f9/0xcf0 fs/bcachefs/alloc_foreground.c:810 __open_bucket_add_buckets+0x11ed/0x1c80 fs/bcachefs/alloc_foreground.c:1058 open_bucket_add_buckets+0x174/0x230 fs/bcachefs/alloc_foreground.c:1102 bch2_alloc_sectors_start_trans+0xcaf/0x1f60 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:333 [inline] bch2_btree_reserve_get+0x5f5/0x18d0 fs/bcachefs/btree_update_interior.c:547 bch2_btree_update_start+0xe84/0x1500 fs/bcachefs/btree_update_interior.c:1245 bch2_btree_split_leaf+0x12c/0x810 fs/bcachefs/btree_update_interior.c:1851 bch2_trans_commit_error+0x200/0x1210 fs/bcachefs/btree_trans_commit.c:918 __bch2_trans_commit+0x6e6c/0x88e0 fs/bcachefs/btree_trans_commit.c:1138 bch2_trans_commit fs/bcachefs/btree_update.h:170 [inline] bch2_set_quota+0x957/0xdf0 fs/bcachefs/quota.c:872 quota_setquota+0x6dc/0x850 fs/quota/quota.c:310 __do_sys_quotactl fs/quota/quota.c:961 [inline] __se_sys_quotactl+0x2c7/0xa30 fs/quota/quota.c:917 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fafd3e7cf29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fafd4bc10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3 RAX: ffffffffffffffda RBX: 00007fafd3fb4050 RCX: 00007fafd3e7cf29 RDX: 0000000000000000 RSI: 0000000020000180 RDI: ffffffff80000801 RBP: 00007fafd3eec074 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000100 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fafd3fb4050 R15: 00007ffcd45b57e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:489 [inline] RIP: 0010:bch2_bucket_alloc_trans+0x3ac8/0x3b30 fs/bcachefs/alloc_foreground.c:649 Code: 4e f6 f4 fd e9 07 c7 ff ff 44 89 f1 80 e1 07 38 c1 0f 8c fe fd ff ff 4c 89 f7 e8 e3 f4 f4 fd e9 f1 fd ff ff e8 69 7a 92 fd 90 <0f> 0b e8 61 7a 92 fd 90 0f 0b e8 29 3b 7a 07 f3 0f 1e fa e8 50 7a RSP: 0018:ffffc900042ade60 EFLAGS: 00010293 RAX: ffffffff8403aba7 RBX: 0000000000000019 RCX: ffff8880235f8000 RDX: 0000000000000000 RSI: 0000000000000019 RDI: 0000000000000000 RBP: ffffc900042ae590 R08: ffffffff84037d73 R09: 0000000000000000 R10: ffffc900042ae448 R11: fffff52000855c8e R12: 0000000000000037 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fafd4bc16c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbdf308f772 CR3: 0000000063ee6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400