BUG: unable to handle page fault for address: fffffffffffffc98 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD df3b067 P4D df3b067 PUD df3d067 PMD 0 Oops: Oops: 0002 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 7664 Comm: syz.3.205 Not tainted 6.15.0-syzkaller-10769-g7d4e49a77d99 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:bch2_writepage_io_alloc fs/bcachefs/fs-io-buffered.c:516 [inline] RIP: 0010:__bch2_writepage+0x15b7/0x2790 fs/bcachefs/fs-io-buffered.c:644 Code: ff e8 5d 13 e9 fd 49 81 c6 98 fc ff ff 4d 89 37 4c 89 f0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 f7 e8 3e 13 e9 fd 48 8b 44 24 68 <49> 89 06 4d 8b 37 48 8b 94 24 a0 00 00 00 48 89 d0 48 c1 e8 03 0f RSP: 0018:ffffc9000a8af2e8 EFLAGS: 00010246 RAX: ffff8880570a8000 RBX: dffffc0000000000 RCX: 0000000000080000 RDX: ffffc9000e1c1000 RSI: 0000000000000a70 RDI: 0000000000000a71 RBP: 0000000000000040 R08: ffff8880535c8908 R09: 1ffffd400035e0c0 R10: dffffc0000000000 R11: fffff9400035e0c1 R12: 1ffff92001515eac R13: 0000000000000040 R14: fffffffffffffc98 R15: ffffc9000a8af560 FS: 00007ff4f40276c0(0000) GS:ffff888125d95000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffffffffc98 CR3: 0000000065cba000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: write_cache_pages+0x64/0x100 mm/page-writeback.c:2614 bch2_writepages+0x154/0x360 fs/bcachefs/fs-io-buffered.c:675 do_writepages+0x32b/0x550 mm/page-writeback.c:2636 filemap_fdatawrite_wbc mm/filemap.c:386 [inline] __filemap_fdatawrite_range mm/filemap.c:419 [inline] file_write_and_wait_range+0x22c/0x330 mm/filemap.c:794 bch2_fsync+0x127/0x330 fs/bcachefs/fs-io.c:245 generic_write_sync include/linux/fs.h:3027 [inline] bch2_write_iter+0x2822/0x2b90 fs/bcachefs/fs-io-buffered.c:1097 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x54b/0xa90 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x193/0x220 fs/read_write.c:798 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:0x7ff4f318e969 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:00007ff4f4027038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007ff4f33b6080 RCX: 00007ff4f318e969 RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000006 RBP: 00007ff4f3210ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fecc R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ff4f33b6080 R15: 00007fffd49fa8b8 Modules linked in: CR2: fffffffffffffc98 ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_writepage_io_alloc fs/bcachefs/fs-io-buffered.c:516 [inline] RIP: 0010:__bch2_writepage+0x15b7/0x2790 fs/bcachefs/fs-io-buffered.c:644 Code: ff e8 5d 13 e9 fd 49 81 c6 98 fc ff ff 4d 89 37 4c 89 f0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 f7 e8 3e 13 e9 fd 48 8b 44 24 68 <49> 89 06 4d 8b 37 48 8b 94 24 a0 00 00 00 48 89 d0 48 c1 e8 03 0f RSP: 0018:ffffc9000a8af2e8 EFLAGS: 00010246 RAX: ffff8880570a8000 RBX: dffffc0000000000 RCX: 0000000000080000 RDX: ffffc9000e1c1000 RSI: 0000000000000a70 RDI: 0000000000000a71 RBP: 0000000000000040 R08: ffff8880535c8908 R09: 1ffffd400035e0c0 R10: dffffc0000000000 R11: fffff9400035e0c1 R12: 1ffff92001515eac R13: 0000000000000040 R14: fffffffffffffc98 R15: ffffc9000a8af560 FS: 00007ff4f40276c0(0000) GS:ffff888125d95000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: fffffffffffffc98 CR3: 0000000065cba000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: e8 5d 13 e9 fd call 0xfde91362 5: 49 81 c6 98 fc ff ff add $0xfffffffffffffc98,%r14 c: 4d 89 37 mov %r14,(%r15) f: 4c 89 f0 mov %r14,%rax 12: 48 c1 e8 03 shr $0x3,%rax 16: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1) 1a: 74 08 je 0x24 1c: 4c 89 f7 mov %r14,%rdi 1f: e8 3e 13 e9 fd call 0xfde91362 24: 48 8b 44 24 68 mov 0x68(%rsp),%rax * 29: 49 89 06 mov %rax,(%r14) <-- trapping instruction 2c: 4d 8b 37 mov (%r15),%r14 2f: 48 8b 94 24 a0 00 00 mov 0xa0(%rsp),%rdx 36: 00 37: 48 89 d0 mov %rdx,%rax 3a: 48 c1 e8 03 shr $0x3,%rax 3e: 0f .byte 0xf