ocfs2: Mounting device (7,2) on (node local, slot 0) with ordered data mode. general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 PID: 5854 Comm: syz.2.3 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3426 [inline] RIP: 0010:ocfs2_prepare_dir_for_insert+0x2f23/0x5480 fs/ocfs2/dir.c:4306 Code: 18 00 e9 e1 11 00 00 e8 8b 71 37 fe e9 a9 02 00 00 e8 81 71 37 fe 4c 8b 7c 24 70 49 8d 7e 08 49 8d 5e 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 78 20 00 00 4c 2b bc 24 88 00 00 00 48 RSP: 0018:ffffc900047ef040 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000009 RCX: 0000000000080000 RDX: ffffc9000daca000 RSI: 0000000000005b0d RDI: 0000000000000008 RBP: ffffc900047ef770 R08: ffffc900047efa80 R09: 608b7c562adf3b03 R10: 23ec6d672c196c9a R11: 608b7c562adf3b03 R12: dffffc0000000000 R13: ffff88805f3a5df8 R14: 0000000000000000 R15: 00000001000001c0 FS: 00007f60f9c0d6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2e0b851763 CR3: 000000005e142000 CR4: 00000000003506f0 Call Trace: __ocfs2_prepare_orphan_dir+0x146/0x2c0 fs/ocfs2/namei.c:2167 ocfs2_prepare_orphan_dir+0xfa/0x3f0 fs/ocfs2/namei.c:2210 ocfs2_unlink+0x8fa/0x18f0 fs/ocfs2/namei.c:960 vfs_unlink+0x389/0x600 fs/namei.c:4333 do_unlinkat+0x328/0x570 fs/namei.c:4399 __do_sys_unlinkat fs/namei.c:4442 [inline] __se_sys_unlinkat fs/namei.c:4435 [inline] __x64_sys_unlinkat+0xd5/0xe0 fs/namei.c:4435 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f60f8d8f749 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:00007f60f9c0d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 00007f60f8fe5fa0 RCX: 00007f60f8d8f749 RDX: 0000000000000000 RSI: 0000200000000380 RDI: ffffffffffffff9c RBP: 00007f60f8e13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f60f8fe6038 R14: 00007f60f8fe5fa0 R15: 00007ffc53225b18 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3426 [inline] RIP: 0010:ocfs2_prepare_dir_for_insert+0x2f23/0x5480 fs/ocfs2/dir.c:4306 Code: 18 00 e9 e1 11 00 00 e8 8b 71 37 fe e9 a9 02 00 00 e8 81 71 37 fe 4c 8b 7c 24 70 49 8d 7e 08 49 8d 5e 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 78 20 00 00 4c 2b bc 24 88 00 00 00 48 RSP: 0018:ffffc900047ef040 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000009 RCX: 0000000000080000 RDX: ffffc9000daca000 RSI: 0000000000005b0d RDI: 0000000000000008 RBP: ffffc900047ef770 R08: ffffc900047efa80 R09: 608b7c562adf3b03 R10: 23ec6d672c196c9a R11: 608b7c562adf3b03 R12: dffffc0000000000 R13: ffff88805f3a5df8 R14: 0000000000000000 R15: 00000001000001c0 FS: 00007f60f9c0d6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1f945e9000 CR3: 000000005e142000 CR4: 00000000003506e0 ---------------- Code disassembly (best guess): 0: 18 00 sbb %al,(%rax) 2: e9 e1 11 00 00 jmp 0x11e8 7: e8 8b 71 37 fe call 0xfe377197 c: e9 a9 02 00 00 jmp 0x2ba 11: e8 81 71 37 fe call 0xfe377197 16: 4c 8b 7c 24 70 mov 0x70(%rsp),%r15 1b: 49 8d 7e 08 lea 0x8(%r14),%rdi 1f: 49 8d 5e 09 lea 0x9(%r14),%rbx 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 78 20 00 00 jne 0x20af 37: 4c 2b bc 24 88 00 00 sub 0x88(%rsp),%r15 3e: 00 3f: 48 rex.W