Unable to handle kernel paging request at virtual address dfff800000000002 KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] Mem abort info: ESR = 0x0000000096000005 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x05: level 1 translation fault Data abort info: ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 [dfff800000000002] address between user and kernel address ranges Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 595 Comm: kworker/u8:8 Not tainted 6.9.0-rc7-syzkaller-gfda5695d692c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: writeback wb_workfn (flush-bcachefs-3) pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : bch2_snapshot_has_children fs/bcachefs/snapshot.h:188 [inline] pc : __bch2_insert_snapshot_whiteouts+0x28c/0x10d0 fs/bcachefs/btree_update.c:135 lr : __snapshot_t fs/bcachefs/snapshot.h:38 [inline] lr : snapshot_t fs/bcachefs/snapshot.h:45 [inline] lr : bch2_snapshot_has_children fs/bcachefs/snapshot.h:187 [inline] lr : __bch2_insert_snapshot_whiteouts+0xfcc/0x10d0 fs/bcachefs/btree_update.c:135 sp : ffff800099164d60 x29: ffff800099165060 x28: ffff0000c5db4000 x27: dfff800000000000 x26: ffff70001322c9c8 x25: ffff800099165000 x24: ffff800099164ee0 x23: ffff800099164e40 x22: ffff8000991655d0 x21: ffff800099164f70 x20: 0000000000000000 x19: 0000000000000001 x18: ffff800099164ac0 x17: 0000000000020dff x16: ffff800080331e9c x15: 0000000000000003 x14: ffff80008eeb0668 x13: dfff800000000000 x12: 0000000049e5966d x11: 00000000efa7d6ab x10: 0000000000ff0100 x9 : 0000000000000000 x8 : 0000000000000002 x7 : ffff80008279c2d8 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002 x2 : 0000000000000008 x1 : 0000000000000001 x0 : 0000000000000014 Call trace: bch2_snapshot_has_children fs/bcachefs/snapshot.h:188 [inline] __bch2_insert_snapshot_whiteouts+0x28c/0x10d0 fs/bcachefs/btree_update.c:135 bch2_insert_snapshot_whiteouts fs/bcachefs/btree_update.h:93 [inline] bch2_trans_update_extent_overwrite+0x9cc/0x21dc fs/bcachefs/btree_update.c:218 bch2_trans_update_extent fs/bcachefs/btree_update.c:318 [inline] bch2_trans_update+0x121c/0x1c70 fs/bcachefs/btree_update.c:514 bch2_nocow_write_convert_one_unwritten fs/bcachefs/io_write.c:1152 [inline] bch2_nocow_write_convert_unwritten+0x924/0x1158 fs/bcachefs/io_write.c:1162 __bch2_nocow_write_done+0x6d0/0x720 fs/bcachefs/io_write.c:1195 bch2_nocow_write+0x2fb8/0x327c fs/bcachefs/io_write.c:1349 __bch2_write+0x46c4/0x4898 fs/bcachefs/io_write.c:1392 bch2_write+0x8c0/0x1520 fs/bcachefs/io_write.c:1610 closure_queue include/linux/closure.h:257 [inline] closure_call include/linux/closure.h:390 [inline] bch2_writepage_do_io fs/bcachefs/fs-io-buffered.c:468 [inline] bch2_writepages+0x224/0x304 fs/bcachefs/fs-io-buffered.c:660 do_writepages+0x2f8/0x7c4 mm/page-writeback.c:2612 __writeback_single_inode+0x160/0x1548 fs/fs-writeback.c:1650 writeback_sb_inodes+0x700/0x101c fs/fs-writeback.c:1941 wb_writeback+0x404/0x1048 fs/fs-writeback.c:2117 wb_do_writeback fs/fs-writeback.c:2264 [inline] wb_workfn+0x394/0x104c fs/fs-writeback.c:2304 process_one_work+0x7b8/0x15d4 kernel/workqueue.c:3267 process_scheduled_works kernel/workqueue.c:3348 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:3429 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 Code: 91006114 91005280 f9406bf9 d343fc08 (38fb6908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 91006114 add x20, x8, #0x18 4: 91005280 add x0, x20, #0x14 8: f9406bf9 ldr x25, [sp, #208] c: d343fc08 lsr x8, x0, #3 * 10: 38fb6908 ldrsb w8, [x8, x27] <-- trapping instruction