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: 13892 Comm: syz.4.2204 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:ffffc900033a6240 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000cbd9000 RSI: 0000000000020670 RDI: 0000000000000008 RBP: ffffc900033a6970 R08: ffffc900033a6bd0 R09: 0000000000000002 R10: 0000000000000002 R11: 0000000000000002 R12: fffff52000674c6c R13: dffffc0000000000 R14: 0000000000000009 R15: ffff88803bd83338 FS: 00007f5462d1f6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007feece158440 CR3: 000000004fa71000 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 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x642/0xb10 fs/read_write.c:861 iter_file_splice_write+0x699/0xcc0 fs/splice.c:685 do_splice_from fs/splice.c:763 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:950 splice_direct_to_actor+0x48b/0xb90 fs/splice.c:896 do_splice_direct+0x1ce/0x2f0 fs/splice.c:1002 do_sendfile+0x5f3/0xea0 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x141/0x1a0 fs/read_write.c:1309 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:0x7f5461d9ce59 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:00007f5462d1f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f5462015fa0 RCX: 00007f5461d9ce59 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007f5461e32d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000fffe82 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5462016038 R14: 00007f5462015fa0 R15: 00007ffd4c1085c8 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:ffffc900033a6240 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000cbd9000 RSI: 0000000000020670 RDI: 0000000000000008 RBP: ffffc900033a6970 R08: ffffc900033a6bd0 R09: 0000000000000002 R10: 0000000000000002 R11: 0000000000000002 R12: fffff52000674c6c R13: dffffc0000000000 R14: 0000000000000009 R15: ffff88803bd83338 FS: 00007f5462d1f6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd0bf42b4e8 CR3: 000000004fa71000 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