BTRFS info (device loop1): enabling ssd optimizations assertion failed: !anon_dev, in fs/btrfs/disk-io.c:1532 ------------[ cut here ]------------ kernel BUG at fs/btrfs/ctree.h:3382! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 12329 Comm: syz-executor.1 Not tainted 5.11.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 RIP: 0010:assertfail.constprop.0+0x28/0x2a fs/btrfs/ctree.h:3382 Code: fa fa 41 54 41 89 f4 55 48 89 fd e8 ab 87 60 f9 44 89 e1 48 89 ee 48 c7 c2 e0 30 e9 88 48 c7 c7 20 31 e9 88 e8 3c 04 f7 ff 90 <0f> 0b 41 56 41 55 41 54 55 53 48 89 fb e8 7f 87 60 f9 48 8d 7b 48 RSP: 0018:ffffc90008b97530 EFLAGS: 00010282 RAX: 0000000000000037 RBX: 000000000000002b RCX: 0000000000000000 RDX: ffff8880349e9c40 RSI: ffffffff815bb9e5 RDI: fffff52001172e98 RBP: ffffffff88e95a20 R08: 0000000000000037 R09: 0000000000000000 R10: ffffffff815b4b8e R11: 0000000000000000 R12: 00000000000005fc R13: 0000000000000003 R14: ffffc90008b975c0 R15: 0000000000000002 FS: 00007fd39d6106c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f53b6654f58 CR3: 0000000018602000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_get_root_ref.part.0.cold+0x36/0x36 fs/btrfs/disk-io.c:1532 btrfs_get_root_ref fs/btrfs/disk-io.c:1526 [inline] btrfs_get_new_fs_root+0x40/0x60 fs/btrfs/disk-io.c:1609 create_pending_snapshot+0xf79/0x27f0 fs/btrfs/transaction.c:1674 create_pending_snapshots+0x174/0x2c0 fs/btrfs/transaction.c:1774 btrfs_commit_transaction+0x8ae/0x2b80 fs/btrfs/transaction.c:2207 create_snapshot fs/btrfs/ioctl.c:858 [inline] btrfs_mksubvol+0x80d/0xf90 fs/btrfs/ioctl.c:1002 btrfs_mksnapshot+0xa8/0xf0 fs/btrfs/ioctl.c:1047 __btrfs_ioctl_snap_create+0x3b3/0x420 fs/btrfs/ioctl.c:1872 btrfs_ioctl_snap_create_v2+0x1ff/0x2e0 fs/btrfs/ioctl.c:1940 btrfs_ioctl+0x3e20/0x8b60 fs/btrfs/ioctl.c:4904 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x196/0x210 fs/ioctl.c:739 do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fd39e28fda9 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:00007fd39d6100c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd39e3bdf80 RCX: 00007fd39e28fda9 RDX: 00000000200005c0 RSI: 0000000050009417 RDI: 0000000000000003 RBP: 00007fd39e2dc47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd39e3bdf80 R15: 00007ffc3e762098 Modules linked in: ---[ end trace 95ca3a0fc070fda0 ]--- RIP: 0010:assertfail.constprop.0+0x28/0x2a fs/btrfs/ctree.h:3382 Code: fa fa 41 54 41 89 f4 55 48 89 fd e8 ab 87 60 f9 44 89 e1 48 89 ee 48 c7 c2 e0 30 e9 88 48 c7 c7 20 31 e9 88 e8 3c 04 f7 ff 90 <0f> 0b 41 56 41 55 41 54 55 53 48 89 fb e8 7f 87 60 f9 48 8d 7b 48 RSP: 0018:ffffc90008b97530 EFLAGS: 00010282 RAX: 0000000000000037 RBX: 000000000000002b RCX: 0000000000000000 RDX: ffff8880349e9c40 RSI: ffffffff815bb9e5 RDI: fffff52001172e98 RBP: ffffffff88e95a20 R08: 0000000000000037 R09: 0000000000000000 R10: ffffffff815b4b8e R11: 0000000000000000 R12: 00000000000005fc R13: 0000000000000003 R14: ffffc90008b975c0 R15: 0000000000000002 FS: 00007fd39d6106c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5948331000 CR3: 0000000018602000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400