loop2: detected capacity change from 0 to 32768 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: 7438 Comm: syz.2.573 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:ffffc9000324eae0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000009 RCX: 0000000000080000 RDX: 0000000000000000 RSI: 0000000000002377 RDI: 0000000000000008 RBP: ffffc9000324f310 R08: ffffffff833ef617 R09: ffffffff833f4ee3 R10: 0000000000000002 R11: ffff88802c343b80 R12: dffffc0000000000 R13: ffff88807281b2c8 R14: ffff88805a05a018 R15: ffff88805fea4178 FS: 00007f44a5f626c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7adf3d1f98 CR3: 000000005784d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_mknod+0xd84/0x2cd0 fs/ocfs2/namei.c:294 ocfs2_create+0x194/0x430 fs/ocfs2/namei.c:674 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x130a/0x2f20 fs/namei.c:3739 do_filp_open+0x21c/0x460 fs/namei.c:3769 do_sys_openat2+0x13b/0x4f0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1280 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:0x7f44a80f8de9 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:00007f44a5f62038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f44a8311fa0 RCX: 00007f44a80f8de9 RDX: 0000000000000042 RSI: 0000400000000040 RDI: ffffffffffffff9c RBP: 00007f44a817a2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f44a8311fa0 R15: 00007fff756b6278 Modules linked in: ---[ end trace 5a0a4a66bcb94216 ]--- 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:ffffc9000324eae0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000009 RCX: 0000000000080000 RDX: 0000000000000000 RSI: 0000000000002377 RDI: 0000000000000008 RBP: ffffc9000324f310 R08: ffffffff833ef617 R09: ffffffff833f4ee3 R10: 0000000000000002 R11: ffff88802c343b80 R12: dffffc0000000000 R13: ffff88807281b2c8 R14: ffff88805a05a018 R15: ffff88805fea4178 FS: 00007f44a5f626c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f06ba446178 CR3: 000000005784d000 CR4: 00000000003506f0 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