------------[ cut here ]------------ !xa_empty(&transaction->delayed_refs.head_refs) WARNING: fs/btrfs/transaction.c:178 at btrfs_put_transaction+0x537/0x570 fs/btrfs/transaction.c:178, CPU#0: btrfs-transacti/5376 Modules linked in: CPU: 0 UID: 0 PID: 5376 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:178 Code: fd fb ff ff e8 1a 53 a6 fd 4c 89 f7 be 03 00 00 00 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d e9 df 15 c8 00 e8 fa 52 a6 fd 90 <0f> 0b 90 e9 65 fb ff ff e8 ec 52 a6 fd 90 0f 0b 90 e9 82 fb ff ff RSP: 0000:ffffc9000fbdfab0 EFLAGS: 00010293 RAX: ffffffff8422c4e6 RBX: ffff8880383c8000 RCX: ffff888034a20000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: dffffc0000000000 R08: ffff8880383c8013 R09: 1ffff11007079002 R10: dffffc0000000000 R11: ffffed1007079003 R12: ffff888052f00e48 R13: ffff8880383c8028 R14: ffff8880383c8350 R15: ffff8880383c8000 FS: 0000000000000000(0000) GS:ffff88808ac2a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000052cc7000 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