Oops: general protection fault, probably for non-canonical address 0xdffffc00000000ea: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000750-0x0000000000000757] CPU: 1 PID: 5230 Comm: syz.0.12 Not tainted 6.10.0-rc6-syzkaller-00163-g661e504db04c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:bch2_opts_apply+0x2061/0x4710 fs/bcachefs/opts.c:179 Code: df e8 13 22 c3 fd 4c 89 3b 48 8d 5c 24 40 49 0f ba e6 37 0f 83 9f 07 00 00 e8 eb 6b 5d fd 4d 8d 7c 24 08 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 c2 20 00 00 4c 89 f8 48 c1 e8 03 42 0f RSP: 0018:ffffc90004a7f820 EFLAGS: 00010212 RAX: 00000000000000ea RBX: ffffc90004a7f860 RCX: 0000000000040000 RDX: ffffc9000a6c9000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90004a7f990 R08: ffffffff84278ea2 R09: 1ffffffff1f5a945 R10: dffffc0000000000 R11: fffffbfff1f5a946 R12: 0000000000000751 R13: dffffc0000000000 R14: 0080000000000000 R15: 0000000000000759 FS: 00007f126f4956c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f57826356b8 CR3: 000000001d2e0000 CR4: 0000000000350ef0 Call Trace: bch2_mount+0x774/0x13a0 fs/bcachefs/fs.c:1940 legacy_get_tree+0xf0/0x190 fs/fs_context.c:662 vfs_get_tree+0x92/0x2a0 fs/super.c:1789 do_new_mount+0x2be/0xb40 fs/namespace.c:3352 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875 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:0x7f126e7772da Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f126f494e78 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f126f494f00 RCX: 00007f126e7772da RDX: 0000000020011a00 RSI: 0000000020011a40 RDI: 00007f126f494ec0 RBP: 0000000020011a00 R08: 00007f126f494f00 R09: 0000000001200014 R10: 0000000001200014 R11: 0000000000000206 R12: 0000000020011a40 R13: 00007f126f494ec0 R14: 00000000000119f8 R15: 0000000020000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_opts_apply+0x2061/0x4710 fs/bcachefs/opts.c:179 Code: df e8 13 22 c3 fd 4c 89 3b 48 8d 5c 24 40 49 0f ba e6 37 0f 83 9f 07 00 00 e8 eb 6b 5d fd 4d 8d 7c 24 08 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 c2 20 00 00 4c 89 f8 48 c1 e8 03 42 0f RSP: 0018:ffffc90004a7f820 EFLAGS: 00010212 RAX: 00000000000000ea RBX: ffffc90004a7f860 RCX: 0000000000040000 RDX: ffffc9000a6c9000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90004a7f990 R08: ffffffff84278ea2 R09: 1ffffffff1f5a945 R10: dffffc0000000000 R11: fffffbfff1f5a946 R12: 0000000000000751 R13: dffffc0000000000 R14: 0080000000000000 R15: 0000000000000759 FS: 00007f126f4956c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8a2fee7fa8 CR3: 000000001d2e0000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: df e8 fucomip %st(0),%st 2: 13 22 adc (%rdx),%esp 4: c3 ret 5: fd std 6: 4c 89 3b mov %r15,(%rbx) 9: 48 8d 5c 24 40 lea 0x40(%rsp),%rbx e: 49 0f ba e6 37 bt $0x37,%r14 13: 0f 83 9f 07 00 00 jae 0x7b8 19: e8 eb 6b 5d fd call 0xfd5d6c09 1e: 4d 8d 7c 24 08 lea 0x8(%r12),%r15 23: 4c 89 e0 mov %r12,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 c2 20 00 00 jne 0x20f9 37: 4c 89 f8 mov %r15,%rax 3a: 48 c1 e8 03 shr $0x3,%rax 3e: 42 rex.X 3f: 0f .byte 0xf