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: 4485 Comm: syz.1.30 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3425 [inline] RIP: 0010:ocfs2_prepare_dir_for_insert+0x3194/0x5660 fs/ocfs2/dir.c:4305 Code: 41 fe e9 71 d1 ff ff e8 5a 98 41 fe e9 d8 02 00 00 e8 50 98 41 fe 4c 8b 7c 24 38 48 8d 7b 08 4c 8d 73 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 9f 1f 00 00 48 8b 54 24 40 48 2b 94 24 RSP: 0018:ffffc900032565c0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc90005eb3000 RSI: 000000000000503f RDI: 0000000000000008 RBP: ffffc90003256cf0 R08: ffffc90003256f50 R09: 0000000000000002 R10: 0000000000000002 R11: 0000000000000002 R12: fffff5200064acdc R13: dffffc0000000000 R14: 0000000000000009 R15: ffff88806ff4c178 FS: 00007f8923a8b6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8923a62000 CR3: 000000007e46a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __ocfs2_prepare_orphan_dir+0x141/0x310 fs/ocfs2/namei.c:2164 ocfs2_prepare_orphan_dir+0xed/0x410 fs/ocfs2/namei.c:2207 ocfs2_add_inode_to_orphan+0x20a/0x7b0 fs/ocfs2/namei.c:2655 ocfs2_dio_wr_get_block+0x7e6/0x1820 fs/ocfs2/aops.c:2211 get_more_blocks fs/direct-io.c:659 [inline] do_direct_IO fs/direct-io.c:947 [inline] __blockdev_direct_IO+0x1749/0x3570 fs/direct-io.c:1260 ocfs2_direct_IO+0x233/0x2a0 fs/ocfs2/aops.c:2468 generic_file_direct_write+0x10f/0x330 mm/filemap.c:3787 __generic_file_write_iter+0x15f/0x2a0 mm/filemap.c:3945 ocfs2_file_write_iter+0x1660/0x1f00 fs/ocfs2/file.c:2469 call_write_iter include/linux/fs.h:2265 [inline] aio_write+0x545/0x780 fs/aio.c:1615 __io_submit_one fs/aio.c:-1 [inline] io_submit_one+0x6cd/0x1380 fs/aio.c:2034 __do_sys_io_submit fs/aio.c:2093 [inline] __se_sys_io_submit+0x19d/0x310 fs/aio.c:2063 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f8922b9ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8923a8b028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f8922e15fa0 RCX: 00007f8922b9ce59 RDX: 0000200000000540 RSI: 000000000000003b RDI: 00007f8923a62000 RBP: 00007f8922c32d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8922e16038 R14: 00007f8922e15fa0 R15: 00007fff477f2978 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_find_dir_space_id fs/ocfs2/dir.c:3425 [inline] RIP: 0010:ocfs2_prepare_dir_for_insert+0x3194/0x5660 fs/ocfs2/dir.c:4305 Code: 41 fe e9 71 d1 ff ff e8 5a 98 41 fe e9 d8 02 00 00 e8 50 98 41 fe 4c 8b 7c 24 38 48 8d 7b 08 4c 8d 73 09 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 9f 1f 00 00 48 8b 54 24 40 48 2b 94 24 RSP: 0018:ffffc900032565c0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc90005eb3000 RSI: 000000000000503f RDI: 0000000000000008 RBP: ffffc90003256cf0 R08: ffffc90003256f50 R09: 0000000000000002 R10: 0000000000000002 R11: 0000000000000002 R12: fffff5200064acdc R13: dffffc0000000000 R14: 0000000000000009 R15: ffff88806ff4c178 FS: 00007f8923a8b6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557023fba2c0 CR3: 000000007e46a000 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 71 d1 ff ff jmp 0xffffd178 7: e8 5a 98 41 fe call 0xfe419866 c: e9 d8 02 00 00 jmp 0x2e9 11: e8 50 98 41 fe call 0xfe419866 16: 4c 8b 7c 24 38 mov 0x38(%rsp),%r15 1b: 48 8d 7b 08 lea 0x8(%rbx),%rdi 1f: 4c 8d 73 09 lea 0x9(%rbx),%r14 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 9f 1f 00 00 jne 0x1fd6 37: 48 8b 54 24 40 mov 0x40(%rsp),%rdx 3c: 48 rex.W 3d: 2b .byte 0x2b 3e: 94 xchg %eax,%esp 3f: 24 .byte 0x24