loop0: detected capacity change from 0 to 32768 bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,foreground_target=invalid label 767,background_target=invalid device 7,nojournal_transaction_names allowing incompatible features above 0.0: (unknown version) features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 bcachefs (loop0): initializing new filesystem bcachefs (loop0): going read-write bcachefs (loop0): marking superblocks bcachefs (loop0): initializing freespace bcachefs (loop0): done initializing freespace bcachefs (loop0): reading snapshots table bcachefs (loop0): reading snapshots done bcachefs (loop0): done starting filesystem bcachefs (loop0 inum 4100 offset 0): data write error: I/O bcachefs (loop0 inum 4100 offset 1048576): data write error: I/O bcachefs (loop0 inum 4100 offset 1900544): data write error: I/O bcachefs (loop0 inum 4100 offset 2097152): data write error: I/O bcachefs (loop0 inum 4100 offset 3145728): data write error: I/O bcachefs (loop0 inum 4100 offset 3997696): data write error: I/O bcachefs (loop0 inum 4100 offset 4194304): data write error: I/O bcachefs (loop0 inum 4100 offset 5242880): data write error: I/O bcachefs (loop0 inum 4100 offset 6094848): data write error: I/O bcachefs (loop0 inum 4100 offset 6291456): data write error: I/O ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5346 at fs/bcachefs/fs-io-buffered.c:456 bch2_writepage_io_done+0x765/0x800 fs/bcachefs/fs-io-buffered.c:456 Modules linked in: CPU: 0 UID: 0 PID: 5346 Comm: syz.0.0 Not tainted 6.16.0-rc7-syzkaller-00120-g5f33ebd2018c #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:bch2_writepage_io_done+0x765/0x800 fs/bcachefs/fs-io-buffered.c:456 Code: 0e 48 3b 84 24 80 00 00 00 75 72 4c 89 f7 48 81 c4 88 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d e9 41 3f 63 00 e8 8c 2b 84 fd 90 <0f> 0b 90 42 80 3c 3b 00 74 08 4c 89 ef e8 19 ac e7 fd 4d 8b 65 00 RSP: 0018:ffffc9000d2d7488 EFLAGS: 00010283 RAX: ffffffff843c0584 RBX: 1ffff1100aafe15c RCX: 0000000000100000 RDX: ffffc9000dea2000 RSI: 00000000000c53e5 RDI: 00000000000c53e6 RBP: 0000000000000008 R08: ffff88801a2fa183 R09: 1ffff1100345f430 R10: dffffc0000000000 R11: ffffed100345f431 R12: 0000000000000008 R13: ffff8880557f0ae0 R14: ffff8880557f0ce8 R15: dffffc0000000000 FS: 00007f619592c6c0(0000) GS:ffff88808d218000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f052e3b5000 CR3: 00000000437dc000 CR4: 0000000000352ef0 Call Trace: bch2_write_data_inline fs/bcachefs/io_write.c:1650 [inline] bch2_write+0xad8/0x10f0 fs/bcachefs/io_write.c:1718 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_writepage_do_io fs/bcachefs/fs-io-buffered.c:486 [inline] bch2_writepages+0x211/0x2d0 fs/bcachefs/fs-io-buffered.c:668 do_writepages+0x32e/0x550 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] filemap_write_and_wait_range+0x217/0x310 mm/filemap.c:691 bchfs_truncate+0x6a3/0xc20 fs/bcachefs/fs-io.c:-1 notify_change+0xb36/0xe40 fs/attr.c:552 do_truncate+0x1a4/0x220 fs/open.c:68 do_ftruncate+0x489/0x540 fs/open.c:195 do_sys_ftruncate fs/open.c:210 [inline] __do_sys_ftruncate fs/open.c:215 [inline] __se_sys_ftruncate fs/open.c:213 [inline] __x64_sys_ftruncate+0x92/0xf0 fs/open.c:213 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6194b8e9a9 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:00007f619592c038 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f6194db5fa0 RCX: 00007f6194b8e9a9 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008 RBP: 00007f6194c10d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6194db5fa0 R15: 00007fff78e1a6f8