------------[ 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/5372 Modules linked in: CPU: 0 UID: 0 PID: 5372 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 ea c3 9e fd 4c 89 f7 be 03 00 00 00 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d e9 5f 75 c8 00 e8 ca c3 9e fd 90 <0f> 0b 90 e9 65 fb ff ff e8 bc c3 9e fd 90 0f 0b 90 e9 82 fb ff ff RSP: 0000:ffffc9000f677ab0 EFLAGS: 00010293 RAX: ffffffff842a8886 RBX: ffff8880139b9000 RCX: ffff888032a62580 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: dffffc0000000000 R08: ffff8880139b9013 R09: 1ffff11002737202 R10: dffffc0000000000 R11: ffffed1002737203 R12: ffff888054780e48 R13: ffff8880139b9028 R14: ffff8880139b9340 R15: ffff8880139b9000 FS: 0000000000000000(0000) GS:ffff88808a9ec000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000006680 CR3: 0000000035619000 CR4: 0000000000352ef0 Call Trace: btrfs_cleanup_transaction+0x582/0x1940 fs/btrfs/disk-io.c:-1 transaction_kthread+0x398/0x460 fs/btrfs/disk-io.c:1637 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