loop0: detected capacity change from 0 to 32768 BTRFS: device fsid 14d642db-7b15-43e4-81e6-4b8fac6a25f8 devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5319) BTRFS info (device loop0): first mount of filesystem 14d642db-7b15-43e4-81e6-4b8fac6a25f8 BTRFS info (device loop0): using blake2b (blake2b-256-generic) checksum algorithm BTRFS info (device loop0): using free-space-tree loop0: detected capacity change from 32768 to 0 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=10440, nr_sectors = 8 limit=0 BTRFS error (device loop0): bdev /dev/loop0 errs: wr 1, rd 0, flush 0, corrupt 0, gen 0 BTRFS info (device loop0): scrub: started on devid 1 syz.0.0: attempt to access beyond end of device loop0: rw=2048, sector=128, nr_sectors = 8 limit=0 syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=2048, nr_sectors = 128 limit=0 BTRFS error (device loop0): bdev /dev/loop0 errs: wr 1, rd 1, flush 0, corrupt 0, gen 0 BTRFS info (device loop0): scrub: finished on devid 1 with status: 0 BTRFS: error (device loop0) in btrfs_commit_transaction:2522: errno=-5 IO failure (Error while writing out transaction) BTRFS info (device loop0 state E): forced readonly BTRFS warning (device loop0 state E): Skipping commit of aborted transaction. BTRFS error (device loop0 state EA): Transaction aborted (error -5) BTRFS: error (device loop0 state EA) in cleanup_transaction:2015: errno=-5 IO failure BTRFS error (device loop0 state EA): scrub: failed to commit transaction to fix super block errors: -5 BTRFS info (device loop0 state EA): last unmount of filesystem 14d642db-7b15-43e4-81e6-4b8fac6a25f8 assertion failed: list_empty(&fs_info->delayed_iputs), in fs/btrfs/disk-io.c:4339 ------------[ cut here ]------------ kernel BUG at fs/btrfs/disk-io.c:4339! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5319 Comm: syz.0.0 Not tainted 6.13.0-rc7-syzkaller-00191-gfda5e3f28400 #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:close_ctree+0x95d/0xd90 fs/btrfs/disk-io.c:4339 Code: e9 da f8 ff ff e8 b3 18 98 00 48 c7 c7 40 64 4b 8c 48 c7 c6 e0 93 4b 8c 48 c7 c2 c0 64 4b 8c b9 f3 10 00 00 e8 e4 9c ff ff 90 <0f> 0b e8 8c 18 98 00 48 c7 c7 40 64 4b 8c 48 c7 c6 80 94 4b 8c 48 RSP: 0018:ffffc9000d52f740 EFLAGS: 00010246 RAX: 0000000000000051 RBX: ffff8880457a0d38 RCX: 33f34d2b8efeb300 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000d52f8e0 R08: ffffffff817f1b5c R09: 1ffff92001aa5e84 R10: dffffc0000000000 R11: fffff52001aa5e85 R12: ffff8880457a0000 R13: ffff8880457a0fa0 R14: 1ffff11008af4274 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f561f9bd000 CR3: 000000000e736000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> generic_shutdown_super+0x139/0x2d0 fs/super.c:642 kill_anon_super+0x3b/0x70 fs/super.c:1237 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2100 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373 task_work_run+0x24f/0x310 kernel/task_work.c:239 exit_task_work include/linux/task_work.h:43 [inline] do_exit+0xa2a/0x28e0 kernel/exit.c:938 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 get_signal+0x16b2/0x1750 kernel/signal.c:3017 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f562a785d29 Code: Unable to access opcode bytes at 0x7f562a785cff. RSP: 002b:00007f5626bf50e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f562a975fa8 RCX: 00007f562a785d29 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f562a975fa8 RBP: 00007f562a975fa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f562a975fac R13: 0000000000000000 R14: 00007ffd178534a0 R15: 00007ffd17853588 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:close_ctree+0x95d/0xd90 fs/btrfs/disk-io.c:4339 Code: e9 da f8 ff ff e8 b3 18 98 00 48 c7 c7 40 64 4b 8c 48 c7 c6 e0 93 4b 8c 48 c7 c2 c0 64 4b 8c b9 f3 10 00 00 e8 e4 9c ff ff 90 <0f> 0b e8 8c 18 98 00 48 c7 c7 40 64 4b 8c 48 c7 c6 80 94 4b 8c 48 RSP: 0018:ffffc9000d52f740 EFLAGS: 00010246 RAX: 0000000000000051 RBX: ffff8880457a0d38 RCX: 33f34d2b8efeb300 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000d52f8e0 R08: ffffffff817f1b5c R09: 1ffff92001aa5e84 R10: dffffc0000000000 R11: fffff52001aa5e85 R12: ffff8880457a0000 R13: ffff8880457a0fa0 R14: 1ffff11008af4274 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f561f9bd000 CR3: 0000000042ace000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400