BTRFS info (device loop5): delayed_refs_rsv: size 262144 reserved 229376 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 11339 at fs/btrfs/transaction.c:145 btrfs_put_transaction+0x37f/0x3e0 Modules linked in: CPU: 0 PID: 11339 Comm: kworker/u4:17 Not tainted 6.2.0-syzkaller-12018-g2fcd07b7ccd5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Workqueue: btrfs-endio-write btrfs_work_helper RIP: 0010:btrfs_put_transaction+0x37f/0x3e0 fs/btrfs/transaction.c:144 Code: 48 89 da e8 03 22 25 07 e9 00 fe ff ff e8 69 6e fc fd 0f 0b e9 ef fc ff ff e8 5d 6e fc fd 0f 0b e9 72 fd ff ff e8 51 6e fc fd <0f> 0b e9 9b fd ff ff e8 45 6e fc fd 48 89 df be 03 00 00 00 48 83 RSP: 0018:ffffc900168bf970 EFLAGS: 00010293 RAX: ffffffff8390786f RBX: ffff88803137a330 RCX: ffff888029a23a80 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffff8390756f R09: ffffed100626f403 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807b40c000 R13: ffff888034fec930 R14: ffff88803137a000 R15: 1ffff110069fd92e FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b3282b000 CR3: 0000000020dd4000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __btrfs_end_transaction+0x3b4/0x640 fs/btrfs/transaction.c:1020 btrfs_finish_ordered_io+0x1156/0x1cc0 fs/btrfs/inode.c:3271 btrfs_work_helper+0x41f/0xec0 fs/btrfs/async-thread.c:280 process_one_work+0x915/0x13a0 kernel/workqueue.c:2390 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308