loop0: detected capacity change from 0 to 32768 bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): Using encoding defined by superblock: utf8-12.1.0 bcachefs (loop0): starting version 1.1023: (unknown version) opts=errors=continue,metadata_checksum=none,data_checksum=none,checksum_err_retry_nr=0,compression=lz4:2,nopromote_whole_extents,nojournal_transaction_names,allocator_stuck_timeout=0 allowing incompatible features above 0.0: (unknown version) 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): /file1 offset 0: write error: __bch2_write(): insufficient_devices ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5315 at fs/bcachefs/fs-io-buffered.c:464 bch2_writepage_io_done+0x765/0x800 fs/bcachefs/fs-io-buffered.c:464 Modules linked in: CPU: 0 UID: 0 PID: 5315 Comm: syz.0.0 Not tainted 6.15.0-rc6-syzkaller-00278-g172a9d94339c #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:464 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 71 c9 61 00 e8 6c 1a 8b fd 90 <0f> 0b 90 42 80 3c 3b 00 74 08 4c 89 ef e8 a9 13 ed fd 4d 8b 65 00 RSP: 0018:ffffc9000d3af1e0 EFLAGS: 00010283 RAX: ffffffff8434d784 RBX: 1ffff1100a9b7b24 RCX: 0000000000100000 RDX: ffffc9000df0a000 RSI: 0000000000005512 RDI: 0000000000005513 RBP: 0000000000000040 R08: ffff888042d37a03 R09: 1ffff110085a6f40 R10: dffffc0000000000 R11: ffffed10085a6f41 R12: 0000000000000008 R13: ffff888054dbd920 R14: ffff888054dbdb28 R15: dffffc0000000000 FS: 00007f1e79cc66c0(0000) GS:ffff88808d6c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000002000 CR3: 000000003f798000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_write_data_inline fs/bcachefs/io_write.c:1632 [inline] bch2_write+0xb8d/0x11e0 fs/bcachefs/io_write.c:1698 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:494 [inline] bch2_writepages+0x269/0x360 fs/bcachefs/fs-io-buffered.c:677 do_writepages+0x3ae/0x7b0 mm/page-writeback.c:2656 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+0x6b2/0xcc0 fs/bcachefs/fs-io.c:-1 notify_change+0xb36/0xe40 fs/attr.c:552 do_truncate+0x19a/0x220 fs/open.c:65 vfs_truncate+0x493/0x520 fs/open.c:115 do_sys_truncate+0xdb/0x190 fs/open.c:138 __do_sys_truncate fs/open.c:150 [inline] __se_sys_truncate fs/open.c:148 [inline] __x64_sys_truncate+0x5b/0x70 fs/open.c:148 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1e78d8e969 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:00007f1e79cc6038 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f1e78fb5fa0 RCX: 00007f1e78d8e969 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000200000000280 RBP: 00007f1e78e10ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1e78fb5fa0 R15: 00007ffdca903908