bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=0 bi_dir_offset=0 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0, fixing done bcachefs (loop0): check_subvolume_structure... done bcachefs (loop0): check_directory_structure... done bcachefs (loop0): check_nlinks... inode 536870913 type reg has wrong i_nlink (2, should be 1), fixing inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): set_fs_needs_rebalance... done bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean bcachefs (loop0): check_alloc_info... done bcachefs (loop0): check_lrus... done bcachefs (loop0): check_btree_backpointers... done bcachefs (loop0): check_backpointers_to_extents... done bcachefs (loop0): check_extents_to_backpointers... done bcachefs (loop0): check_alloc_to_lru_refs... done bcachefs (loop0): bucket_gens_init... done bcachefs (loop0): check_snapshot_trees... done bcachefs (loop0): check_snapshots... done bcachefs (loop0): check_subvols... done bcachefs (loop0): check_subvol_children... done bcachefs (loop0): delete_dead_snapshots... done bcachefs (loop0): check_inodes... done bcachefs (loop0): check_extents... done bcachefs (loop0): check_indirect_extents... done bcachefs (loop0): check_dirents... done bcachefs (loop0): check_xattrs... done bcachefs (loop0): check_root... done bcachefs (loop0): check_unreachable_inodes... done bcachefs (loop0): check_subvolume_structure... done bcachefs (loop0): check_directory_structure... done bcachefs (loop0): check_nlinks... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): set_fs_needs_rebalance... done bcachefs (loop0): done starting filesystem loop0: detected capacity change from 32768 to 0 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=8448, nr_sectors = 8 limit=0 bcachefs (loop0 inum 4102 offset 0): data write error: I/O ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5314 at fs/bcachefs/fs-io-buffered.c:419 bch2_writepage_io_done+0x8ca/0x970 fs/bcachefs/fs-io-buffered.c:419 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 Not tainted 6.13.0-rc3-syzkaller #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:bch2_writepage_io_done+0x8ca/0x970 fs/bcachefs/fs-io-buffered.c:419 Code: 00 00 00 48 3b 84 24 e0 00 00 00 0f 85 ac 00 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 87 c9 66 fd 90 <0f> 0b 90 42 80 3c 3b 00 74 08 4c 89 f7 e8 24 32 cd fd 4d 8b 26 e9 RSP: 0018:ffffc9000d327160 EFLAGS: 00010287 RAX: ffffffff8438aa69 RBX: 1ffff1100a5f0323 RCX: 0000000000100000 RDX: ffffc9000e90a000 RSI: 0000000000004fea RDI: 0000000000004feb RBP: ffffc9000d327290 R08: ffffffff8438a895 R09: 1ffff1100726bc20 R10: dffffc0000000000 R11: ffffed100726bc21 R12: 0000000000000008 R13: ffffc9000d3271e0 R14: ffff888052f81918 R15: dffffc0000000000 FS: 00007f13bc7fe6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f13b0affe00 CR3: 0000000040846000 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:1558 [inline] bch2_write+0x1022/0x1760 fs/bcachefs/io_write.c:1627 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:449 [inline] bch2_writepages+0x284/0x390 fs/bcachefs/fs-io-buffered.c:641 do_writepages+0x35f/0x880 mm/page-writeback.c:2702 filemap_fdatawrite_wbc mm/filemap.c:397 [inline] __filemap_fdatawrite_range mm/filemap.c:430 [inline] file_write_and_wait_range+0x2a3/0x3c0 mm/filemap.c:787 bch2_fsync+0x13a/0x350 fs/bcachefs/fs-io.c:199 generic_write_sync include/linux/fs.h:2904 [inline] bch2_write_iter+0x2918/0x2c10 fs/bcachefs/fs-io-buffered.c:1061 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f13bcd85d19 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:00007f13bc7fe038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f13bcf75fa0 RCX: 00007f13bcd85d19 RDX: 0000000000000090 RSI: 0000000020000140 RDI: 000000000000000a RBP: 00007f13bce01a20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f13bcf75fa0 R15: 00007ffe9025b8f8