------------[ cut here ]------------ kernel BUG at fs/bcachefs/fs-io-pagecache.c:219! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 7306 Comm: syz.4.114 Not tainted 6.16.0-rc7-syzkaller-g82af5ea7c611 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/18/2025 pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : bch2_folio_set+0x940/0x964 fs/bcachefs/fs-io-pagecache.c:201 lr : bch2_folio_set+0x940/0x964 fs/bcachefs/fs-io-pagecache.c:201 sp : ffff80009ea77660 x29: ffff80009ea77800 x28: 0040000000000040 x27: 0040000000000040 x26: ffc0000000000038 x25: ffff80009ea77790 x24: dfff800000000000 x23: ffc0000100000037 x22: fffffdffc39f2ec8 x21: fffffdffc39f2ec0 x20: ffc0000000000038 x19: ffc0000000000038 x18: 00000000ffffffff x17: ffff800093376000 x16: ffff80008ae69508 x15: 0000000000000003 x14: 0000000000000002 x13: 0000000000000013 x12: 0000000000ff0100 x11: 0000000000080000 x10: 000000000000480b x9 : ffff8000a662b000 x8 : 000000000000480c x7 : 20000000ffc00000 x6 : 00000038ffffffff x5 : ffff80009ea777a0 x4 : ffff80009ea77774 x3 : 0000000000000000 x2 : ffff80009ea77778 x1 : 0040000000000040 x0 : ffc0000000000038 Call trace: bch2_folio_set+0x940/0x964 fs/bcachefs/fs-io-pagecache.c:201 (P) __bch2_buffered_write fs/bcachefs/fs-io-buffered.c:864 [inline] bch2_buffered_write fs/bcachefs/fs-io-buffered.c:1026 [inline] bch2_write_iter+0xa14/0x2300 fs/bcachefs/fs-io-buffered.c:1082 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x62c/0x97c fs/read_write.c:686 ksys_write+0x120/0x210 fs/read_write.c:738 __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:746 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: d4210000 9776de90 d4210000 9776de8e (d4210000) ---[ end trace 0000000000000000 ]---