loop0: detected capacity change from 0 to 32768 BTRFS: device fsid 395ef67a-297e-477c-816d-cd80a5b93e5d devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5325) BTRFS info (device loop0): first mount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d BTRFS info (device loop0): using sha256 (sha256-avx2) 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=6145, 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 syz.0.0: attempt to access beyond end of device loop0: rw=6145, sector=10448, nr_sectors = 8 limit=0 BTRFS error (device loop0): bdev /dev/loop0 errs: wr 2, rd 0, flush 0, corrupt 0, gen 0 syz.0.0: attempt to access beyond end of device loop0: rw=6145, sector=10456, nr_sectors = 8 limit=0 BTRFS error (device loop0): bdev /dev/loop0 errs: wr 3, rd 0, flush 0, corrupt 0, gen 0 syz.0.0: attempt to access beyond end of device loop0: rw=6145, sector=10464, nr_sectors = 8 limit=0 BTRFS error (device loop0): bdev /dev/loop0 errs: wr 4, rd 0, flush 0, corrupt 0, gen 0 syz.0.0: attempt to access beyond end of device loop0: rw=6145, sector=10472, nr_sectors = 8 limit=0 BTRFS error (device loop0): bdev /dev/loop0 errs: wr 5, rd 0, flush 0, corrupt 0, gen 0 syz.0.0: attempt to access beyond end of device loop0: rw=6145, sector=10480, nr_sectors = 8 limit=0 BTRFS error (device loop0): bdev /dev/loop0 errs: wr 6, rd 0, flush 0, corrupt 0, gen 0 syz.0.0: attempt to access beyond end of device loop0: rw=6145, sector=13440, nr_sectors = 8 limit=0 BTRFS error (device loop0): bdev /dev/loop0 errs: wr 7, rd 0, flush 0, corrupt 0, gen 0 BTRFS: error (device loop0) in btrfs_commit_transaction:2524: 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:2017: errno=-5 IO failure syz.0.0: attempt to access beyond end of device loop0: rw=2051, sector=10240, nr_sectors = 24 limit=0 syz.0.0: attempt to access beyond end of device loop0: rw=2051, sector=13448, nr_sectors = 3192 limit=0 BTRFS warning (device loop0 state EA): failed to trim 3 block group(s), last error -5 syz.0.0: attempt to access beyond end of device loop0: rw=2051, sector=16640, nr_sectors = 16128 limit=0 BTRFS warning (device loop0 state EA): failed to trim 1 device(s), last error -5 BTRFS info (device loop0 state EA): last unmount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d assertion failed: list_empty(&fs_info->delayed_iputs), in fs/btrfs/disk-io.c:4332 ------------[ cut here ]------------ kernel BUG at fs/btrfs/disk-io.c:4332! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5325 Comm: syz.0.0 Not tainted 6.12.0-rc7-syzkaller-00070-g0a9b9d17f3a7 #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+0x91f/0xd60 fs/btrfs/disk-io.c:4332 Code: e9 18 f9 ff ff e8 d1 de cf f5 48 c7 c7 40 4d 4c 8c 48 c7 c6 e0 7c 4c 8c 48 c7 c2 c0 4d 4c 8c b9 ec 10 00 00 e8 02 9d ff ff 90 <0f> 0b e8 aa de cf f5 48 c7 c7 40 4d 4c 8c 48 c7 c6 80 7d 4c 8c 48 RSP: 0018:ffffc9000d427740 EFLAGS: 00010246 RAX: 0000000000000051 RBX: ffff888012768d38 RCX: af9f354d265ace00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000d4278e0 R08: ffffffff8174b13c R09: 1ffff92001a84e84 R10: dffffc0000000000 R11: fffff52001a84e85 R12: ffff888012768000 R13: ffff888012768fa0 R14: 1ffff110024ed272 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff7cdb019a0 CR3: 000000004304a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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:2114 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+0xa2f/0x28e0 kernel/exit.c:939 do_group_exit+0x207/0x2c0 kernel/exit.c:1088 get_signal+0x16a3/0x1740 kernel/signal.c:2918 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:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x370 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:0x7ff7ccd7e719 Code: Unable to access opcode bytes at 0x7ff7ccd7e6ef. RSP: 002b:00007ff7cdb220e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007ff7ccf35f88 RCX: 00007ff7ccd7e719 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007ff7ccf35f88 RBP: 00007ff7ccf35f80 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff7ccf35f8c R13: 0000000000000000 R14: 00007ffe88e650b0 R15: 00007ffe88e65198 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:close_ctree+0x91f/0xd60 fs/btrfs/disk-io.c:4332 Code: e9 18 f9 ff ff e8 d1 de cf f5 48 c7 c7 40 4d 4c 8c 48 c7 c6 e0 7c 4c 8c 48 c7 c2 c0 4d 4c 8c b9 ec 10 00 00 e8 02 9d ff ff 90 <0f> 0b e8 aa de cf f5 48 c7 c7 40 4d 4c 8c 48 c7 c6 80 7d 4c 8c 48 RSP: 0018:ffffc9000d427740 EFLAGS: 00010246 RAX: 0000000000000051 RBX: ffff888012768d38 RCX: af9f354d265ace00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000d4278e0 R08: ffffffff8174b13c R09: 1ffff92001a84e84 R10: dffffc0000000000 R11: fffff52001a84e85 R12: ffff888012768000 R13: ffff888012768fa0 R14: 1ffff110024ed272 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff7cdb019a0 CR3: 000000004304a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400