loop0: detected capacity change from 0 to 32768 BTRFS: device fsid ed167579-eb65-4e76-9a50-61ac97e9b59d devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5320) BTRFS info (device loop0): first mount of filesystem ed167579-eb65-4e76-9a50-61ac97e9b59d BTRFS info (device loop0): using sha256 (sha256-avx2) checksum algorithm BTRFS info (device loop0): rebuilding free space tree BTRFS info (device loop0): disabling free space tree BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) BTRFS error (device loop0): failed to run delayed ref for logical 12316672 num_bytes 4096 type 176 action 1 ref_mod 1: -28 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 5320 at fs/btrfs/extent-tree.c:2160 btrfs_run_delayed_refs+0x2df/0x2f0 fs/btrfs/extent-tree.c:2160 Modules linked in: CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted 6.13.0-syzkaller-08291-g805ba04cb7cc #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:btrfs_run_delayed_refs+0x2df/0x2f0 fs/btrfs/extent-tree.c:2160 Code: 8b 38 48 c7 c6 60 6f 4b 8c 89 da e8 5b 25 50 fd e9 56 ff ff ff e8 01 d9 e7 fd 90 48 c7 c7 00 6f 4b 8c 89 de e8 d2 91 a8 fd 90 <0f> 0b 90 90 e9 38 ff ff ff 0f 1f 84 00 00 00 00 00 90 90 90 90 90 RSP: 0018:ffffc9000d4570b8 EFLAGS: 00010246 RAX: 10cbffd5769aae00 RBX: 00000000ffffffe4 RCX: 0000000000100000 RDX: ffffc9000e9e2000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffff888054190001 R08: ffffffff81802842 R09: fffffbfff1cfa584 R10: dffffc0000000000 R11: fffffbfff1cfa584 R12: 0000000000000000 R13: ffff888052c9b000 R14: dffffc0000000000 R15: ffff888043bd2818 FS: 00007fd44685c6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff1af6e9df7 CR3: 0000000042de4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_commit_transaction+0x4b9/0x3760 fs/btrfs/transaction.c:2194 btrfs_sync_file+0xdd7/0x11e0 fs/btrfs/file.c:1735 generic_write_sync include/linux/fs.h:2958 [inline] btrfs_do_write_iter+0x5fc/0x7b0 fs/btrfs/file.c:1386 iter_file_splice_write+0xbfa/0x1510 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x11b/0x220 fs/splice.c:1164 splice_direct_to_actor+0x586/0xc80 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x289/0x3e0 fs/splice.c:1233 do_sendfile+0x564/0x8a0 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1424 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1410 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd44598cda9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd44685c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fd445ba5fa0 RCX: 00007fd44598cda9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000006 RBP: 00007fd445a0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000080000002 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd445ba5fa0 R15: 00007ffc6a17d3c8