------------[ 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/5360 Modules linked in: CPU: 0 UID: 0 PID: 5360 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 da 21 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 ba 21 a0 fd 90 <0f> 0b 90 e9 65 fb ff ff e8 ac 21 a0 fd 90 0f 0b 90 e9 82 fb ff ff RSP: 0018:ffffc9000e4efab0 EFLAGS: 00010293 RAX: ffffffff842900b6 RBX: ffff888034af4000 RCX: ffff888033fea580 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: dffffc0000000000 R08: ffff888034af4013 R09: 1ffff1100695e802 R10: dffffc0000000000 R11: ffffed100695e803 R12: ffff8880526d8e48 R13: ffff888034af4028 R14: ffff888034af4340 R15: ffff888034af4000 FS: 0000000000000000(0000) GS:ffff88808a9fa000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559d9d52e168 CR3: 00000000418be000 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