loop1: detected capacity change from 0 to 32768 ocfs2: Mounting device (7,1) 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: 1 PID: 4508 Comm: syz.1.72 Not tainted 5.15.178-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+0x3409/0x5eb0 fs/ocfs2/dir.c:4288 Code: 41 fe e9 4c cf ff ff e8 65 62 41 fe e9 46 01 00 00 e8 5b 62 41 fe 48 8b 54 24 20 48 8d 7a 08 48 8d 5a 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 e7 24 00 00 4c 8b 6c 24 68 4c 2b ac 24 RSP: 0018:ffffc9000328f040 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000009 RCX: 0000000000080000 RDX: 0000000000000000 RSI: 0000000000007943 RDI: 0000000000000008 RBP: ffffc9000328f870 R08: ffffffff833ef617 R09: ffffffff833f4ee3 R10: 0000000000000002 R11: ffff888022658000 R12: dffffc0000000000 R13: ffff88805f0ce2c8 R14: ffff88806179e018 R15: ffff888072970878 FS: 00007f0019d536c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c29dc90 CR3: 000000005b601000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_symlink+0xe3b/0x2e20 fs/ocfs2/namei.c:1860 vfs_symlink+0x247/0x3d0 fs/namei.c:4429 do_symlinkat+0x1fd/0x600 fs/namei.c:4458 __do_sys_symlink fs/namei.c:4480 [inline] __se_sys_symlink fs/namei.c:4478 [inline] __x64_sys_symlink+0x7a/0x90 fs/namei.c:4478 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f001beea169 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:00007f0019d53038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f001c102fa0 RCX: 00007f001beea169 RDX: 0000000000000000 RSI: 0000400000000800 RDI: 0000400000000540 RBP: 00007f001bf6b2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f001c102fa0 R15: 00007ffce25cf858 Modules linked in: ---[ end trace 35b59377dd7ff754 ]--- RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3408 [inline] RIP: 0010:ocfs2_prepare_dir_for_insert+0x3409/0x5eb0 fs/ocfs2/dir.c:4288 Code: 41 fe e9 4c cf ff ff e8 65 62 41 fe e9 46 01 00 00 e8 5b 62 41 fe 48 8b 54 24 20 48 8d 7a 08 48 8d 5a 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 e7 24 00 00 4c 8b 6c 24 68 4c 2b ac 24 RSP: 0018:ffffc9000328f040 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000009 RCX: 0000000000080000 RDX: 0000000000000000 RSI: 0000000000007943 RDI: 0000000000000008 RBP: ffffc9000328f870 R08: ffffffff833ef617 R09: ffffffff833f4ee3 R10: 0000000000000002 R11: ffff888022658000 R12: dffffc0000000000 R13: ffff88805f0ce2c8 R14: ffff88806179e018 R15: ffff888072970878 FS: 00007f0019d536c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556cb49d9008 CR3: 000000005b601000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 41 fe rex.B (bad) 2: e9 4c cf ff ff jmp 0xffffcf53 7: e8 65 62 41 fe call 0xfe416271 c: e9 46 01 00 00 jmp 0x157 11: e8 5b 62 41 fe call 0xfe416271 16: 48 8b 54 24 20 mov 0x20(%rsp),%rdx 1b: 48 8d 7a 08 lea 0x8(%rdx),%rdi 1f: 48 8d 5a 09 lea 0x9(%rdx),%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 e7 24 00 00 jne 0x251e 37: 4c 8b 6c 24 68 mov 0x68(%rsp),%r13 3c: 4c rex.WR 3d: 2b .byte 0x2b 3e: ac lods %ds:(%rsi),%al 3f: 24 .byte 0x24