------------[ cut here ]------------ !xa_empty(&transaction->delayed_refs.head_refs) WARNING: fs/btrfs/transaction.c:174 at btrfs_put_transaction+0x537/0x570 fs/btrfs/transaction.c:174, CPU#0: btrfs-transacti/5373 Modules linked in: CPU: 0 UID: 0 PID: 5373 Comm: btrfs-transacti Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:btrfs_put_transaction+0x537/0x570 fs/btrfs/transaction.c:174 Code: fd fb ff ff e8 6a f7 a0 fd 4c 89 f7 be 03 00 00 00 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d e9 9f 3f c8 00 e8 4a f7 a0 fd 90 <0f> 0b 90 e9 65 fb ff ff e8 3c f7 a0 fd 90 0f 0b 90 e9 82 fb ff ff RSP: 0018:ffffc9000e787ab0 EFLAGS: 00010293 RAX: ffffffff84282a56 RBX: ffff88804137c000 RCX: ffff888036188000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: dffffc0000000000 R08: ffff88804137c013 R09: 1ffff1100826f802 R10: dffffc0000000000 R11: ffffed100826f803 R12: ffff888054924e48 R13: ffff88804137c028 R14: ffff88804137c340 R15: ffff88804137c000 FS: 0000000000000000(0000) GS:ffff88808aa01000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557a32211260 CR3: 0000000051ef8000 CR4: 0000000000352ef0 Call Trace: btrfs_cleanup_transaction+0x582/0x1940 fs/btrfs/disk-io.c:-1 transaction_kthread+0x398/0x460 fs/btrfs/disk-io.c:1595 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245