ocfs2: Mounting device (7,0) 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: 7856 Comm: syz.0.673 Not tainted 6.1.128-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3408 [inline] RIP: 0010:ocfs2_prepare_dir_for_insert+0x36ad/0x6120 fs/ocfs2/dir.c:4288 Code: 23 fe e9 8d 06 00 00 e8 31 ef 23 fe e9 31 03 00 00 e8 27 ef 23 fe 4c 8b 64 24 38 49 8d 7e 08 49 8d 5e 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 b8 24 00 00 4c 2b 64 24 18 48 89 d8 48 RSP: 0018:ffffc90003526ac0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000009 RCX: 0000000000080000 RDX: ffffc900056e1000 RSI: 0000000000002764 RDI: 0000000000000008 RBP: ffffc900035272f0 R08: ffffffff836673cb R09: ffffffff8366cf41 R10: 0000000000000002 R11: ffff88802f1ebb80 R12: 00000001000001c0 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888065cd40f8 FS: 00007fbe4606f6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d31fffc CR3: 000000004268b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_mknod+0xdeb/0x2e20 fs/ocfs2/namei.c:294 ocfs2_create+0x1c0/0x4e0 fs/ocfs2/namei.c:674 lookup_open fs/namei.c:3482 [inline] open_last_lookups fs/namei.c:3550 [inline] path_openat+0x12f1/0x2e60 fs/namei.c:3780 do_filp_open+0x230/0x480 fs/namei.c:3810 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_openat fs/open.c:1350 [inline] __se_sys_openat fs/open.c:1345 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1345 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fbe4518cde9 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:00007fbe4606f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fbe453a5fa0 RCX: 00007fbe4518cde9 RDX: 0000000000000042 RSI: 0000400000000040 RDI: ffffffffffffff9c RBP: 00007fbe4520e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fbe453a5fa0 R15: 00007fff98a5a048 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3408 [inline] RIP: 0010:ocfs2_prepare_dir_for_insert+0x36ad/0x6120 fs/ocfs2/dir.c:4288 Code: 23 fe e9 8d 06 00 00 e8 31 ef 23 fe e9 31 03 00 00 e8 27 ef 23 fe 4c 8b 64 24 38 49 8d 7e 08 49 8d 5e 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 b8 24 00 00 4c 2b 64 24 18 48 89 d8 48 RSP: 0018:ffffc90003526ac0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000009 RCX: 0000000000080000 RDX: ffffc900056e1000 RSI: 0000000000002764 RDI: 0000000000000008 RBP: ffffc900035272f0 R08: ffffffff836673cb R09: ffffffff8366cf41 R10: 0000000000000002 R11: ffff88802f1ebb80 R12: 00000001000001c0 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888065cd40f8 FS: 00007fbe4606f6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2b9d4f CR3: 000000004268b000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 23 fe and %esi,%edi 2: e9 8d 06 00 00 jmp 0x694 7: e8 31 ef 23 fe call 0xfe23ef3d c: e9 31 03 00 00 jmp 0x342 11: e8 27 ef 23 fe call 0xfe23ef3d 16: 4c 8b 64 24 38 mov 0x38(%rsp),%r12 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 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 b8 24 00 00 jne 0x24ef 37: 4c 2b 64 24 18 sub 0x18(%rsp),%r12 3c: 48 89 d8 mov %rbx,%rax 3f: 48 rex.W