bcachefs (loop0): accounting_read... done bcachefs (loop0): alloc_read... done bcachefs (loop0): snapshots_read... done bcachefs (loop0): done starting filesystem ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5975 at block/bio.c:512 bio_alloc_bioset+0xd61/0x1130 block/bio.c:512 Modules linked in: CPU: 0 UID: 0 PID: 5975 Comm: syz.0.17 Not tainted 6.15.0-rc1-next-20250411-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:bio_alloc_bioset+0xd61/0x1130 block/bio.c:512 Code: db f6 ff 81 ce 00 20 09 00 e8 9b f1 3f fd 48 85 c0 0f 84 a1 00 00 00 48 89 c5 e8 8a 55 e1 fc e9 7a f8 ff ff e8 80 55 e1 fc 90 <0f> 0b 90 e9 7b fb ff ff e8 72 55 e1 fc 90 0f 0b 90 44 8b 7c 24 20 RSP: 0018:ffffc900048b6ef0 EFLAGS: 00010287 RAX: ffffffff84e224c0 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000bf09000 RSI: 0000000000000673 RDI: 0000000000000674 RBP: dffffc0000000000 R08: ffffffff84e217c4 R09: 1ffffd40002d16b0 R10: dffffc0000000000 R11: fffff940002d16b1 R12: 0000000000000100 R13: 0000000000000cc0 R14: 0000000000000001 R15: 0000000000000100 FS: 00007f39506bb6c0(0000) GS:ffff888124f80000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30c18ff8 CR3: 00000000317ee000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_writepage_io_alloc fs/bcachefs/fs-io-buffered.c:510 [inline] __bch2_writepage+0x1624/0x2780 fs/bcachefs/fs-io-buffered.c:644 write_cache_pages+0xd2/0x240 mm/page-writeback.c:2613 bch2_writepages+0x158/0x390 fs/bcachefs/fs-io-buffered.c:675 do_writepages+0x38c/0x640 mm/page-writeback.c:2635 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] file_write_and_wait_range+0x2cf/0x3e0 mm/filemap.c:794 bch2_fsync+0x13a/0x3c0 fs/bcachefs/fs-io.c:228 generic_write_sync include/linux/fs.h:2980 [inline] bch2_write_iter+0x2a08/0x2cd0 fs/bcachefs/fs-io-buffered.c:1097 do_iter_readv_writev+0x71f/0x9d0 fs/read_write.c:-1 vfs_writev+0x38d/0xbc0 fs/read_write.c:1055 do_pwritev fs/read_write.c:1151 [inline] __do_sys_pwritev2 fs/read_write.c:1209 [inline] __se_sys_pwritev2+0x1b7/0x2e0 fs/read_write.c:1200 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f394f78d169 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:00007f39506bb038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f394f9a5fa0 RCX: 00007f394f78d169 RDX: 0000000000000002 RSI: 0000200000000180 RDI: 0000000000000004 RBP: 00007f394f80e990 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000e74 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f394f9a5fa0 R15: 00007ffc03eab288